-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
49 lines (40 loc) · 1009 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
TODAY = $(shell date +'%Y-%m-%d')
GPP = /d/programs/gpp2.27.exe
# ./gpp.exe
# ./gpp2.27.exe
TEMPLATE = template.docx
CSL = chicago-fullnote-bibliography-short-title-subsequent.csl
SOURCE = ./metadata.yaml \
./chap1-introduction.md \
./chap2-components-of-wudu.md \
./chap3-nullifiers-of-wudu.md \
./chap4-conclusion.md \
./_end.md \
./metadata.yaml
default: docx
docx:
cat util/_macros.md metadata.yaml $(SOURCE) | \
$(GPP) -x | \
pandoc -t docx -f markdown+startnum+four_space_rule \
--reference-doc=template.docx \
--citeproc \
--csl $(CSL) \
--toc \
-o dist/$(TODAY)-prophets-wudu-draft.docx
html:
cat util/_macros.md metadata.yaml $(SOURCE) | \
$(GPP) -x | \
pandoc -t html5 -s -f markdown+startnum+four_space_rule \
--citeproc \
--csl $(CSL) \
--toc \
-o dist/$(TODAY)-prophets-wudu-draft.html
latex:
cat metadata.yaml \
_macros.md \
source.md \
footnotes.md | \
pp -pdf | \
pandoc -t latex \
-f markdown+startnum+four_space_rule \
-o book/content.tex \