-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (20 loc) · 689 Bytes
/
Makefile
File metadata and controls
32 lines (20 loc) · 689 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
.SUFFIXES: .pdf .tex .md
TEX = $(shell find . -type f -name '*.tex' | sort)
MD = $(shell find . -type f -name '*.md' | sort)
PANDOC_OPTS := -N --toc \
--variable mainfont=Palatino \
--variable sansfont=Helvetica \
--variable monofont=Menlo \
--variable fontsize=11pt \
--variable version=2.0 \
--variable linkcolor=blue \
--variable geometry:margin=1in \
# if quiet target is on command line, then redirect to /dev/null
QUIET := $(subst quiet,>/dev/null,$(MAKECMDGOALS))
all: outline.pdf
quiet: all
outline.pdf: $(MD) Makefile
m4 outline.md > .outline.md
time pandoc $(PANDOC_OPTS) .outline.md -o $@ $(QUIET)
clean:
rm -f .outline.md outline.pdf