summaryrefslogtreecommitdiff
path: root/Makefile
blob: 98545df2b39ef9f55611b8f541aaf79e0826fb1c (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:=$(shell find . -name "*.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