forked from cplusplus/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (27 loc) · 897 Bytes
/
Makefile
File metadata and controls
41 lines (27 loc) · 897 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
33
34
35
36
37
38
39
40
41
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)
check: .check.stamp
.check.stamp: ../tools/check-source.sh *.tex
@echo "Running tools/check-source.sh"
@../tools/check-source.sh
@touch $@
.PHONY: default refresh refresh full quiet clean-figures figures clean-examples examples check