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 | |
Andrew Jeffery | bba5b18 | 2016-05-09 15:02:07 +0930 | [diff] [blame^] | 9 | userguide.pdf: userguide.tex |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 10 | $(tex) $^ |
| 11 | |
Andrew Jeffery | bba5b18 | 2016-05-09 15:02:07 +0930 | [diff] [blame^] | 12 | userguide.tex: userguide/userguide.tex |
| 13 | pandoc -f latex -t latex -s -o $@ $^ |
| 14 | |
Jeremy Kerr | a729743 | 2016-05-05 12:24:23 +0800 | [diff] [blame] | 15 | userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex |
| 16 | |
| 17 | %.tex: %.md |
| 18 | pandoc -o $@ $^ |
| 19 | |
| 20 | clean: |
| 21 | rm -f *.aux *.tex *.out *.pdf |