-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
66 lines (55 loc) · 1.33 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
63
64
65
66
# Generate PDFs from the Markdown source files
#
# In order to use this makefile, you need some tools:
# - GNU make
# - Pandoc
# Directory containing source (Markdown) files
source_en := ./rpts/LiqMod.md
source_ko := ./rpts/LiqMod_KO.md
source_zh := ./rpts/LiqMod_ZH.md
# Directory containing pdf files
output_en := ./out/LiquidityModuleLightPaper.pdf
output_ko := ./out/LiquidityModuleLightPaper_KO.pdf
output_zh := ./out/LiquidityModuleLightPaper_ZH.pdf
# bibliography
bibliography := ./bibs/LiqMod.bib
# template
template := ./eisvogel
clean:
rm -f $(output)
builden:
pandoc $(source_en) \
--output $(output_en) \
--from markdown \
--listings \
--template $(template) \
--bibliography=$(bibliography) \
--citeproc \
--toc \
--top-level-division=chapter \
--number-sections \
--pdf-engine "xelatex"
buildko:
pandoc $(source_ko) \
--output $(output_ko) \
--from markdown \
--listings \
--template $(template) \
--bibliography=$(bibliography) \
--citeproc \
--toc \
--number-sections \
--top-level-division=chapter \
--pdf-engine "xelatex"
buildzh:
pandoc $(source_zh) \
--output $(output_zh) \
--from markdown \
--listings \
--template $(template) \
--bibliography=$(bibliography) \
--citeproc \
--toc \
--number-sections \
--top-level-division=chapter \
--pdf-engine "xelatex"