blob: e12cdc87bbb69542a16dc4955d0e2ba4a8ed327a [file] [log] [blame]
Joel Stanleyf9ada902018-11-07 12:27:11 +10301# To build:
2# $ apt install fonts-linuxlibertine texlive-xetex pandoc
3# $ make
Jeremy Kerra7297432016-05-05 12:24:23 +08004
5# we need xelatex for utf-8 support
6tex = xelatex
Jeremy Kerrdd1b5c02016-05-26 11:14:14 +08007tflags = -interaction=nonstopmode -halt-on-error
Jeremy Kerra7297432016-05-05 12:24:23 +08008
9all: userguide.pdf
10
11.PHONY: all clean
12
Jeremy Kerr8b80cb62016-05-26 11:02:58 +080013userguide.pdf: userguide/userguide.tex
Jeremy Kerrdd1b5c02016-05-26 11:14:14 +080014 $(tex) $(tflags) $^
Jeremy Kerrb065d2c2016-05-26 11:15:14 +080015 $(tex) $(tflags) $^
Jeremy Kerra7297432016-05-05 12:24:23 +080016
Joel Stanleyc7c7c862018-11-07 12:27:18 +103017userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update/code-update.tex
Jeremy Kerra7297432016-05-05 12:24:23 +080018
19%.tex: %.md
20 pandoc -o $@ $^
21
22clean:
Andrew Jefferyb63933f2016-05-09 15:33:54 +093023 rm -f *.tex userguide.*