xref: /openbmc/docs/Makefile (revision f9ada90ea5141b6635b78a829a0a641b02a1ffc6)
1*f9ada90eSJoel Stanley# To build:
2*f9ada90eSJoel Stanley#  $ apt install fonts-linuxlibertine texlive-xetex pandoc
3*f9ada90eSJoel Stanley#  $ make
4a7297431SJeremy Kerr
5a7297431SJeremy Kerr# we need xelatex for utf-8 support
6a7297431SJeremy Kerrtex = xelatex
7dd1b5c0eSJeremy Kerrtflags = -interaction=nonstopmode -halt-on-error
8a7297431SJeremy Kerr
9a7297431SJeremy Kerrall: userguide.pdf
10a7297431SJeremy Kerr
11a7297431SJeremy Kerr.PHONY: all clean
12a7297431SJeremy Kerr
138b80cb60SJeremy Kerruserguide.pdf: userguide/userguide.tex
14dd1b5c0eSJeremy Kerr	$(tex) $(tflags) $^
15b065d2c1SJeremy Kerr	$(tex) $(tflags) $^
16a7297431SJeremy Kerr
17a7297431SJeremy Kerruserguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex
18a7297431SJeremy Kerr
19a7297431SJeremy Kerr%.tex: %.md
20a7297431SJeremy Kerr	pandoc -o $@ $^
21a7297431SJeremy Kerr
22a7297431SJeremy Kerrclean:
23b63933fcSAndrew Jeffery	rm -f *.tex userguide.*
24