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 | b065d2c | 2016-05-26 11:15:14 +0800 | [diff] [blame] | 12 | $(tex) $(tflags) $^ |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 13 | |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 14 | userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex |
| 15 | |
| 16 | %.tex: %.md |
| 17 | pandoc -o $@ $^ |
| 18 | |
| 19 | clean: |
Andrew Jeffery | b63933f | 2016-05-09 15:33:54 +0930 | [diff] [blame] | 20 | rm -f *.tex userguide.* |