-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
62 lines (45 loc) · 1.5 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.PHONY: help all article article-docx article-pdf article-tex presentation presentation-html presentation-pdf presentation-pptx presentation-tex thesis thesis-docx thesis-epub thesis-pdf thesis-tex
.DEFAULT_GOAL := help
help:
head -2 Makefile
all:
make article presentation thesis
article-docx:
(cd article && \
pandoc --defaults=./../defaults.yaml --defaults=docx.yaml)
article-pdf:
(cd article && \
pandoc --defaults=./../defaults.yaml --defaults=pdf.yaml)
article-tex:
(cd article && \
pandoc --defaults=./../defaults.yaml --defaults=tex.yaml)
article:
make article-docx article-pdf article-tex
presentation-html:
(cd presentation && \
pandoc --defaults=./../defaults.yaml --defaults=html.yaml)
presentation-pdf:
(cd presentation && \
pandoc --defaults=./../defaults.yaml --defaults=pdf.yaml)
presentation-pptx:
(cd presentation && \
pandoc --defaults=./../defaults.yaml --defaults=pptx.yaml)
presentation-tex:
(cd presentation && \
pandoc --defaults=./../defaults.yaml --defaults=tex.yaml)
presentation:
make presentation-html presentation-pdf presentation-pptx presentation-tex
thesis-docx:
(cd thesis && \
pandoc --defaults=./../defaults.yaml --defaults=docx.yaml)
thesis-epub:
(cd thesis && \
pandoc --defaults=./../defaults.yaml --defaults=epub.yaml)
thesis-pdf:
(cd thesis && \
pandoc --defaults=./../defaults.yaml --defaults=pdf.yaml)
thesis-tex:
(cd thesis && \
pandoc --defaults=./../defaults.yaml --defaults=tex.yaml)
thesis:
make thesis-docx thesis-epub thesis-pdf thesis-tex