Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 1 | |
| 2 | # we need xelatex for utf-8 support |
| 3 | tex = xelatex |
Jeremy Kerr | dd1b5c0 | 2016-05-26 11:14:14 +0800 | [diff] [blame^] | 4 | tflags = -interaction=nonstopmode -halt-on-error |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 5 | |
| 6 | all: userguide.pdf |
| 7 | |
| 8 | .PHONY: all clean |
| 9 | |
Jeremy Kerr | 8b80cb6 | 2016-05-26 11:02:58 +0800 | [diff] [blame] | 10 | userguide.pdf: userguide/userguide.tex |
Jeremy Kerr | dd1b5c0 | 2016-05-26 11:14:14 +0800 | [diff] [blame^] | 11 | $(tex) $(tflags) $^ |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 12 | |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 13 | userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex |
| 14 | |
| 15 | %.tex: %.md |
| 16 | pandoc -o $@ $^ |
| 17 | |
| 18 | clean: |
Andrew Jeffery | b63933f | 2016-05-09 15:33:54 +0930 | [diff] [blame] | 19 | rm -f *.tex userguide.* |