This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
81 lines (62 loc) · 1.82 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
69
70
71
72
73
74
75
76
77
78
79
80
81
DATA=data/mutations_perf.csv
FIGURES=figures/mutations-perf.pdf\
figures/sweeps-perf.pdf\
figures/gc-perf.pdf\
figures/dtwf-perf.pdf\
figures/ancestry-perf.pdf
ILLUSTRATIONS=\
illustrations/mutated_tree.pdf\
illustrations/example_tree_sequence.pdf
all: paper.pdf response-to-reviewers.pdf
paper.pdf: paper.tex paper.bib ${DATA} ${FIGURES} ${ILLUSTRATIONS}
pdflatex paper.tex
bibtex paper
pdflatex paper.tex
pdflatex paper.tex
figures/%.pdf:
python3 evaluation/plot.py $*
illustrations/mutated_tree.svg: pretty_pictures.py
python3 $< mutated-tree
illustrations/arg-ts.svg: pretty_pictures.py
python3 $< arg-ts
%.pdf : %.svg
# Have to use Chromium here because we use svg2. Hopefully
# we'll fix this soon and we'll be able to use simpler
# conversion tools, or convert directly within the
# generating script.
chromium --headless --no-margins --print-to-pdf=$@ $<
# inkscape $< --export-pdf=$@
%.pdf : %.ink.svg
inkscape $< --export-pdf=$@
data/mutations_perf.csv:
python3 evaluation/generate_mutations_perf_data.py generate-trees
python3 evaluation/generate_mutations_perf_data.py benchmark-on-trees
data/ancestry_perf.csv:
python3 evaluation/generation_ancestry_perf_data.py
paper.ps: paper.dvi
dvips paper
paper.dvi: paper.tex paper.bib
latex paper.tex
bibtex paper
latex paper.tex
latex paper.tex
.PHONY: spellcheck
spellcheck: aspell.conf
aspell --conf ./aspell.conf --check paper.tex
clean:
rm -f *.pdf
rm -f *.log *.dvi *.aux
rm -f *.blg *.bbl
rm -f *.eps *.[1-9]
rm -f src/*.mpx *.mpx
mrproper: clean
rm -f *.ps *.pdf
review-diff.tex: paper.tex
latexdiff reviewed-paper.tex paper.tex > review-diff.tex
review-diff.pdf: review-diff.tex
pdflatex review-diff.tex
pdflatex review-diff.tex
bibtex review-diff
pdflatex review-diff.tex
response-to-reviewers.pdf: response-to-reviewers.tex
pdflatex $<