summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: f6f10906e69353b96b1564ecdbf4a344eb7320ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BOOK:=manual.pdf
SOURCES:=src/*.md
FIGURES:=src/figs/*.svg
PFLAGS:=--table-of-contents \
	--pdf-engine=xelatex \
	--from=markdown \
	--number-sections \
	--indented-code-classes=javascript \
	--highlight-style=monochrome \
	-V mainfont="Apple Garamond" \
	-V monofont="FreeMono" \
	-V documentclass=report \
	-V papersize=letter \
	-V geometry:margin=1in

.PHONY: all clean

all: $(BOOK)

$(BOOK): $(SOURCES) src/title.txt $(FIGURES)
	pandoc $^ -o $@ $(PFLAGS)

clean:
	$(RM) *.pdf