blob: c00b79c048007e07549e7b7afcd2317f0a4c9aea [file] [log] [blame]
Jeremy Kerra7297432016-05-05 12:24:23 +08001
2# we need xelatex for utf-8 support
3tex = xelatex
4
5all: userguide.pdf
6
7.PHONY: all clean
8
Andrew Jefferybba5b182016-05-09 15:02:07 +09309userguide.pdf: userguide.tex
Jeremy Kerra7297432016-05-05 12:24:23 +080010 $(tex) $^
11
Andrew Jefferybba5b182016-05-09 15:02:07 +093012userguide.tex: userguide/userguide.tex
13 pandoc -f latex -t latex -s -o $@ $^
14
Jeremy Kerra7297432016-05-05 12:24:23 +080015userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex
16
17%.tex: %.md
18 pandoc -o $@ $^
19
20clean:
21 rm -f *.aux *.tex *.out *.pdf