Makefile 556 Bytes
Newer Older
Albert Gräf's avatar
Albert Gräf committed
1 2

#HTML_FLAGS = -c modern.css
3
HTML_FLAGS = -c github-pandoc.css
Albert Gräf's avatar
Albert Gräf committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
TEX_FLAGS = --template=mydefault.latex --latex-engine=xelatex
PDF_FLAGS = -V 'geometry:paperwidth=21cm' -V 'geometry:paperheight=29.7cm' -V 'geometry:vmargin=2cm' -V 'geometry:hmargin=2cm' -V 'fontsize:12pt'

filter = -F pandoc-crossref

all: html pdf
html: Purr-Data-Intro.html
pdf: Purr-Data-Intro.pdf

clean:
	rm -f Purr-Data-Intro.html Purr-Data-Intro.pdf

%.html: %.md
	pandoc $(filter) -s -S $< -o $@ $(HTML_FLAGS)

%.pdf: %.md
	pandoc $(filter) -s -S $< -o $@ $(TEX_FLAGS) $(PDF_FLAGS)