2015-02-11 20:50:17 +00:00
|
|
|
PANDOC = pandoc
|
|
|
|
INPUT = README.md
|
2015-03-15 16:56:57 +00:00
|
|
|
INPUT_LANG = guide-$(GUIDE_LANG).md
|
2015-02-11 20:50:17 +00:00
|
|
|
OUTPUT = tutorial.pdf
|
2015-03-15 16:56:57 +00:00
|
|
|
OUTPUT_LANG = tutorial-$(GUIDE_LANG).pdf
|
2015-02-11 20:50:17 +00:00
|
|
|
TITLE = -V title=LearnHaskell
|
|
|
|
AUTHOR = -V author=bitemyapp
|
|
|
|
FONTSIZE = -V fontsize=12pt
|
|
|
|
FONTFAMILY = -V fontfamily=sans
|
2015-03-15 16:44:53 +00:00
|
|
|
MAINFONT= -V mainfont=Georgia
|
2015-02-11 20:50:17 +00:00
|
|
|
PAGESIZE = -V pagesize=a4paper
|
2015-02-12 04:08:31 +00:00
|
|
|
GEOMETRY = -V geometry=landscape
|
2015-03-15 16:44:53 +00:00
|
|
|
VARIABLES = $(GEOMETRY) $(FONTSIZE) $(PAGESIZE) $(TITLE) $(AUTHOR) $(FONTFAMILY) $(MAINFONT)
|
|
|
|
FLAGS = --normalize --smart --toc --latex-engine=xelatex $(VARIABLES)
|
2015-02-11 20:50:17 +00:00
|
|
|
|
|
|
|
pdf: README.md
|
|
|
|
$(PANDOC) -s $(INPUT) -o $(OUTPUT) $(FLAGS) --column=80
|
2015-03-15 01:04:02 +00:00
|
|
|
|
2015-03-15 16:56:57 +00:00
|
|
|
pdf-lang: guide-$(GUIDE_LANG).md
|
|
|
|
$(PANDOC) -s $(INPUT_LANG) -o $(OUTPUT_LANG) $(FLAGS) --column=80
|
|
|
|
|
2015-03-15 01:04:02 +00:00
|
|
|
dialogues: dialogues.md
|
|
|
|
$(PANDOC) -s dialogues.md -o dialogues.pdf $(FLAGS) --column=80
|