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 13userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex 14 15%.tex: %.md 16 pandoc -o $@ $^ 17 18clean: 19 rm -f *.tex userguide.* 20