add quotation mark in add_header HSTS directive
[ach-master.git] / src / Makefile
1 NOW := $(shell date)
2
3 TEXMFHOME ?={./texmf,$(shell kpsewhich -var-value TEXMFHOME)}
4 LATEX = TEXMFHOME=${TEXMFHOME} pdflatex -synctex=1
5
6 all:    pdf html md
7
8 once:
9         ${LATEX} applied-crypto-hardening
10
11 pdf: 
12         ./update-metadata-for-gitinfo
13         ${LATEX} applied-crypto-hardening
14         bibtex applied-crypto-hardening
15         makeglossaries applied-crypto-hardening
16         ${LATEX} applied-crypto-hardening
17         # re-do for refs
18         ${LATEX} applied-crypto-hardening
19         while grep -s "Rerun to get cross-references right" \
20         applied-crypto-hardening.log ; do \
21             ${LATEX} applied-crypto-hardening ; \
22         done
23         #dvipdfm -z 9 applied-crypto-hardening
24         #dvipdf applied-crypto-hardening.dvi
25
26 html:
27         latex2html applied-crypto-hardening
28
29 md:
30         pandoc -f latex -t markdown -o applied-crypto-hardening.markdown \
31             applied-crypto-hardening.tex
32
33 # experimental
34 txt:
35         detex applied-crypto-hardening > applied-crypto-hardening.txt
36
37
38 #epub:
39          # experimental
40 #        ~/Library/texmf/tex/latex/tex4ebook/tex4ebook applied-crypto-hardening.tex
41
42 epub:
43  # experimental
44         pandoc -f latex -t epub -o applied-crypto-hardening.epub applied-crypto-hardening.tex
45
46 upload:
47         rsync -avz --progress --no-p --no-g --no-t applied-crypto-hardening.pdf www.bettercrypto.org:/var/www/bettercrypto.org/static
48         rsync -avz --progress --no-p --no-g --no-t configuration www.bettercrypto.org:/var/www/bettercrypto.org/static
49
50 www:    pdf upload
51
52 clean:
53         rm -f applied-crypto-hardening.aux applied-crypto-hardening.bbl \
54             applied-crypto-hardening.blg applied-crypto-hardening.dvi   \
55             applied-crypto-hardening.log applied-crypto-hardening.pdf   \
56             applied-crypto-hardening.toc applied-crypto-hardening.markdown \
57             applied-crypto-hardening.glo applied-crypto-hardening.glg \
58             applied-crypto-hardening.gls applied-crypto-hardening.ind \
59             applied-crypto-hardening.ilg applied-crypto-hardening.ist \
60             applied-crypto-hardening.idx applied-crypto-hardening.lol \
61                         applied-crypto-hardening.out
62         rm -rf applied-crypto-hardening/
63         rm -rf gitHeadInfo.gin
64         rm -f applied-crypto-hardening.txt