-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
68 lines (54 loc) · 1.47 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
DEPS=\
paper.tex \
paper.bib \
models/IM.yaml \
models/IM-resolved.yaml \
models/tennessen.yaml \
fig/IM.pdf \
fig/showcase.pdf
all: paper.pdf response-to-reviewers.pdf
paper.pdf: $(DEPS)
pdflatex -shell-escape paper.tex
bibtex paper
pdflatex -shell-escape paper.tex
pdflatex -shell-escape paper.tex
# This works better for some people:
# latexmk -shell-escape paper.tex
paper.ps: paper.dvi
dvips paper
paper.dvi: $(DEPS)
latex paper.tex
bibtex paper
latex paper.tex
latex paper.tex
fig/IM.pdf: drawfig.py models/IM.yaml
python3 drawfig.py
fig/showcase.pdf: fig/showcase.py fig/minted-snippet.tex
cd fig && $(MAKE) showcase.pdf
resolve: models/IM.yaml
#python -m demes parse models/IM.yaml > models/IM-resolved.yaml
# Use demes-c resolver.
../demes-c/resolve models/IM.yaml > models/IM-resolved.yaml
.PHONY: spellcheck
spellcheck: aspell.conf
aspell --conf ./aspell.conf --check paper.tex
aspell --conf ./aspell.conf --check software-table.tex
clean:
rm -f *.log *.dvi *.aux
rm -f *.blg *.bbl
rm -f *.eps *.[1-9]
rm -f src/*.mpx *.mpx
rm -fr _minted-paper
cd fig && $(MAKE) clean
mrproper:
rm -f *.ps *.pdf
cd fig && $(MAKE) mrproper
review-diff.tex: paper.tex
latexdiff reviewed-paper.tex paper.tex > review-diff.tex
review-diff.pdf: review-diff.tex
pdflatex -shell-escape review-diff.tex
pdflatex -shell-escape review-diff.tex
bibtex review-diff
pdflatex -shell-escape review-diff.tex
response-to-reviewers.pdf: response-to-reviewers.tex
pdflatex $<