Merge branch 'master' of https://git.bettercrypto.org/ach-master
[ach-master.git] / src / Makefile
1 NOW := $(shell date)
2
3 all:    pdf html md
4
5 pdf:
6         ./update-metadata-for-gitinfo
7         pdflatex applied-crypto-hardening
8         bibtex applied-crypto-hardening
9         while grep -s "Rerun to get cross-references right" \
10         applied-crypto-hardening.log ; do \
11             pdflatex applied-crypto-hardening ; \
12         done
13         #dvipdfm -z 9 applied-crypto-hardening
14         #dvipdf applied-crypto-hardening.dvi
15
16 html:
17         latex2html applied-crypto-hardening
18
19 md:
20         pandoc -f latex -t markdown -o applied-crypto-hardening.markdown \
21             applied-crypto-hardening.tex
22
23 #epub:
24          # experimental
25 #        ~/Library/texmf/tex/latex/tex4ebook/tex4ebook applied-crypto-hardening.tex
26
27 epub:
28  # experimental
29         pandoc -f latex -t epub -o applied-crypto-hardening.epub applied-crypto-hardening.tex
30
31 clean:
32         rm -f applied-crypto-hardening.aux applied-crypto-hardening.bbl \
33             applied-crypto-hardening.blg applied-crypto-hardening.dvi   \
34             applied-crypto-hardening.log applied-crypto-hardening.pdf   \
35             applied-crypto-hardening.toc applied-crypto-hardening.markdown
36         rm -rf applied-crypto-hardening/
37         rm -rf gitHeadInfo.gin