2015-02-11 20:50:17 +00:00
|
|
|
PANDOC = pandoc
|
|
|
|
INPUT = README.md
|
|
|
|
OUTPUT = tutorial.pdf
|
|
|
|
TITLE = -V title=LearnHaskell
|
|
|
|
AUTHOR = -V author=bitemyapp
|
|
|
|
FONTSIZE = -V fontsize=12pt
|
|
|
|
FONTFAMILY = -V fontfamily=sans
|
|
|
|
PAGESIZE = -V pagesize=a4paper
|
2015-02-12 04:08:31 +00:00
|
|
|
GEOMETRY = -V geometry=landscape
|
|
|
|
VARIABLES = $(GEOMETRY) $(FONTSIZE) $(PAGESIZE) $(TITLE) $(AUTHOR) $(FONTFAMILY)
|
2015-02-11 20:50:17 +00:00
|
|
|
FLAGS = --normalize --smart --toc $(VARIABLES)
|
|
|
|
|
|
|
|
pdf: README.md
|
|
|
|
$(PANDOC) -s $(INPUT) -o $(OUTPUT) $(FLAGS) --column=80
|
2015-03-15 01:04:02 +00:00
|
|
|
|
|
|
|
dialogues: dialogues.md
|
|
|
|
$(PANDOC) -s dialogues.md -o dialogues.pdf $(FLAGS) --column=80
|