| Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame^] | 1 | |
| 2 | # we need xelatex for utf-8 support | ||||
| 3 | tex = xelatex | ||||
| 4 | |||||
| 5 | all: userguide.pdf | ||||
| 6 | |||||
| 7 | .PHONY: all clean | ||||
| 8 | |||||
| 9 | userguide.pdf: userguide/userguide.tex | ||||
| 10 | $(tex) $^ | ||||
| 11 | |||||
| 12 | userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex | ||||
| 13 | |||||
| 14 | %.tex: %.md | ||||
| 15 | pandoc -o $@ $^ | ||||
| 16 | |||||
| 17 | clean: | ||||
| 18 | rm -f *.aux *.tex *.out *.pdf | ||||