1 2# we need xelatex for utf-8 support 3tex = xelatex 4tflags = -interaction=nonstopmode -halt-on-error 5 6all: userguide.pdf 7 8.PHONY: all clean 9 10userguide.pdf: userguide/userguide.tex 11 $(tex) $(tflags) $^ 12 $(tex) $(tflags) $^ 13 14userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex 15 16%.tex: %.md 17 pandoc -o $@ $^ 18 19clean: 20 rm -f *.tex userguide.* 21