include the automatic generation of .tex files for @@@CIPHERSUITEB@@@
[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         pdflatex applied-crypto-hardening
11         bibtex applied-crypto-hardening
12         while grep -s "Rerun to get cross-references right" \
13         applied-crypto-hardening.log ; do \
14             pdflatex applied-crypto-hardening ; \
15         done
16         #dvipdfm -z 9 applied-crypto-hardening
17         #dvipdf applied-crypto-hardening.dvi
18
19 html:
20         latex2html applied-crypto-hardening
21
22 md:
23         pandoc -f latex -t markdown -o applied-crypto-hardening.markdown \
24             applied-crypto-hardening.tex
25
26 #epub:
27          # experimental
28 #        ~/Library/texmf/tex/latex/tex4ebook/tex4ebook applied-crypto-hardening.tex
29
30 epub:
31  # experimental
32         pandoc -f latex -t epub -o applied-crypto-hardening.epub applied-crypto-hardening.tex
33
34 upload:
35         rsync -avz --progress --no-p --no-g --no-t applied-crypto-hardening.pdf www.bettercrypto.org:/var/www/static/
36
37 www:    pdf upload
38
39 clean:
40         rm -f applied-crypto-hardening.aux applied-crypto-hardening.bbl \
41             applied-crypto-hardening.blg applied-crypto-hardening.dvi   \
42             applied-crypto-hardening.log applied-crypto-hardening.pdf   \
43             applied-crypto-hardening.toc applied-crypto-hardening.markdown
44         rm -rf applied-crypto-hardening/
45         rm -rf gitHeadInfo.gin