forked from bitemyapp/learnhaskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (20 loc) · 773 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
PANDOC = pandoc
INPUT = README.md
INPUT_LANG = guide-$(GUIDE_LANG).md
OUTPUT = tutorial.pdf
OUTPUT_LANG = tutorial-$(GUIDE_LANG).pdf
TITLE = -V title=LearnHaskell
AUTHOR = -V author=bitemyapp
FONTSIZE = -V fontsize=12pt
FONTFAMILY = -V fontfamily=sans
MAINFONT= -V mainfont=Georgia
PAGESIZE = -V pagesize=a4paper
GEOMETRY = -V geometry=landscape
VARIABLES = $(GEOMETRY) $(FONTSIZE) $(PAGESIZE) $(TITLE) $(AUTHOR) $(FONTFAMILY) $(MAINFONT)
FLAGS = --normalize --smart --toc --latex-engine=xelatex $(VARIABLES)
pdf: README.md
$(PANDOC) -s $(INPUT) -o $(OUTPUT) $(FLAGS) --column=80
pdf-lang: guide-$(GUIDE_LANG).md
$(PANDOC) -s $(INPUT_LANG) -o $(OUTPUT_LANG) $(FLAGS) --column=80
dialogues: dialogues.md
$(PANDOC) -s dialogues.md -o dialogues.pdf $(FLAGS) --column=80