1 2# we need xelatex for utf-8 support 3tex = xelatex 4 5all: userguide.pdf 6 7.PHONY: all clean 8 9userguide.pdf: userguide.tex 10 $(tex) $^ 11 12userguide.tex: userguide/userguide.tex 13 pandoc -f latex -t latex -s -o $@ $^ 14 15userguide/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 22