mirror of
https://github.com/bitemyapp/learnhaskell.git
synced 2024-11-03 23:15:18 +00:00
15 lines
440 B
Makefile
15 lines
440 B
Makefile
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
|
|
GEOMETRY = -V geometry=landscape
|
|
VARIABLES = $(GEOMETRY) $(FONTSIZE) $(PAGESIZE) $(TITLE) $(AUTHOR) $(FONTFAMILY)
|
|
FLAGS = --normalize --smart --toc $(VARIABLES)
|
|
|
|
pdf: README.md
|
|
$(PANDOC) -s $(INPUT) -o $(OUTPUT) $(FLAGS) --column=80
|