forked from cplusplus/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 657 Bytes
/
Makefile
File metadata and controls
32 lines (21 loc) · 657 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
32
FIGURES=$(patsubst %.dot,%.pdf,$(wildcard assets/*.dot))
EXAMPLES=$(patsubst %.tex,%.pdf,$(wildcard assets/*.tex))
default: full
clean:
rm -f *.aux std.pdf std-gram.ext *.idx *.ilg *.ind *.log *.lot *.lof *.tmp *.out *.glo *.gls *.fls *.fdb* *.toc *.xtr
refresh:
pdflatex std
full:
latexmk -pdf std
quiet:
latexmk -pdf std -e '$$max_repeat = 1;' -silent || ( rm std.pdf; latexmk -pdf std -e '$$max_repeat = 4;' )
%.pdf: %.dot
dot -o $@ -Tpdf $< -Nfontname=NewComputerModernSans10
clean-figures:
rm -f $(FIGURES)
figures: $(FIGURES)
%.pdf: %.tex
lualatex -output-directory assets $<
clean-examples:
rm -f $(EXAMPLES)
examples: $(EXAMPLES)