reformat ECC section
[ach-master.git] / src / Makefile
1 NOW := $(shell date)
2
3 all:    pdf html md
4
5 %_generated.tex: %.tex
6         ./perlify.pl
7
8 pdf: 
9         ./update-metadata-for-gitinfo
10         ./perlify.pl
11         pdflatex applied-crypto-hardening
12         bibtex applied-crypto-hardening
13         while grep -s "Rerun to get cross-references right" \
14         applied-crypto-hardening.log ; do \
15             pdflatex applied-crypto-hardening ; \
16         done
17         #dvipdfm -z 9 applied-crypto-hardening
18         #dvipdf applied-crypto-hardening.dvi
19
20 html:
21         latex2html applied-crypto-hardening
22
23 md:
24         pandoc -f latex -t markdown -o applied-crypto-hardening.markdown \
25             applied-crypto-hardening.tex
26
27 #epub:
28          # experimental
29 #        ~/Library/texmf/tex/latex/tex4ebook/tex4ebook applied-crypto-hardening.tex
30
31 epub:
32  # experimental
33         pandoc -f latex -t epub -o applied-crypto-hardening.epub applied-crypto-hardening.tex
34
35 upload:
36         rsync -avz --progress --no-p --no-g --no-t applied-crypto-hardening.pdf www.bettercrypto.org:/var/www/static/
37
38 www:    pdf upload
39
40 clean:
41         rm -f applied-crypto-hardening.aux applied-crypto-hardening.bbl \
42             applied-crypto-hardening.blg applied-crypto-hardening.dvi   \
43             applied-crypto-hardening.log applied-crypto-hardening.pdf   \
44             applied-crypto-hardening.toc applied-crypto-hardening.markdown \
45                         applied-crypto-hardening.out
46         find . -name "*_generated.tex" -exec rm \{\} \;
47         rm -rf applied-crypto-hardening/
48         rm -rf gitHeadInfo.gin