1%.pdf: %.md Makefile
2	pandoc -s --toc --pdf-engine=xelatex -N --top-level-division=part \
3		--metadata=title:'Gunyah Hypercall API' \
4		--metadata=date:"Generated: `date \"+%a %d %B %Y\"`" \
5		--variable=class:book \
6		--variable=mainfont:LiberationSans \
7		--variable=monofont:LiberationMono \
8		--variable=papersize:a4  \
9		--variable=margin-left:2.5cm  \
10		--variable=margin-right:2.5cm  \
11		--variable=margin-top:2.5cm  \
12		--variable=margin-bottom:2.5cm  \
13		$< -o $@
14
15all: gunyah_api.pdf gunyah_api_qcom.pdf
16