-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (32 loc) · 933 Bytes
/
Makefile
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
PDF = magical-zilch-book.pdf
SRCS = \
namespaces.tex \
config.tex \
cover.tex \
index.tex \
part0-introduction.tex \
part1-zilch.tex \
part2-nstar.tex \
part3-stdlib.tex \
toc.tex \
preamble.tex \
main.bib
MAIN = main.tex
TEXFLAGS = \
-interaction=batchmode \
-latexoption=-shell-escape \
-jobname="magical-zilch-book" \
-use-make-
all: $(PDF)
rebuild: clean $(PDF)
book: $(PDF)
latexmk -interaction=batchmode -jobname="book" -pdf book.tex
%.pdf: $(MAIN) $(SRCS)
latexmk $(TEXFLAGS) -pdf $<
.PHONY: clean
clean: $(MAIN) $(SRCS)
latexmk $(TEXFLAGS) -C $<
-@rm -r _minted-*
-@rm $(PDF)
# Clean latexmk left-overs
-@rm *.ptc *.run.xml *.bbl *.aux *.bcf *.blg *.fdb_latexmk *.fls *.glg *.glo *.gls *.ist *.log *.out *.toc *.lol *.lof *.lot