-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 717 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
source := .
output := output
PANDOCFLAGS = \
--table-of-contents \
--number-sections \
--pdf-engine=tectonic \
--from=markdown \
--indented-code-classes=javascript \
--highlight-style=monochrome \
-V mainfont="Futura" \
-V monofont="PT Mono" \
-V documentclass=report \
-V papersize=A5 \
-V geometry:a4paper \
-V geometry:margin=1in
sources := $(wildcard $(source)/*.md)
all: output/knowledge.pdf
print:
echo $(sources)
$(output)/knowledge.pdf: $(sources)
pandoc $^ -o $@ title.txt $(PANDOCFLAGS)
.PHONY: clean
clean:
rm -rf $(output)/*