-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (28 loc) · 1.21 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
FIRST_DIFF_TAG = jason-blue
pdf: main.pdf sup.pdf
main.pdf: main.tex references.bib figures/salvini-v-snoqualmie.pdf figures/vine-v-bear-valley.pdf
pdflatex -shell-escape main.tex
bibtex main.aux
pdflatex -shell-escape main.tex
pdflatex -shell-escape main.tex
sup.pdf: sup.tex references.bib
pdflatex -shell-escape sup.tex
bibtex sup.aux
pdflatex -shell-escape sup.tex
pdflatex -shell-escape sup.tex
trackchanges:
git checkout $(FIRST_DIFF_TAG)
cp main.tex $(FIRST_DIFF_TAG).tex
git checkout master
latexdiff $(FIRST_DIFF_TAG).tex main.tex > diff-master_$(FIRST_DIFF_TAG).tex
rm $(FIRST_DIFF_TAG).tex
pdflatex -shell-escape -interaction nonstopmode diff-master_$(FIRST_DIFF_TAG).tex
bibtex diff-master_$(FIRST_DIFF_TAG).aux
pdflatex -shell-escape -interaction nonstopmode diff-master_$(FIRST_DIFF_TAG).tex
pdflatex -shell-escape -interaction nonstopmode diff-master_$(FIRST_DIFF_TAG).tex
figures/salvini-v-snoqualmie.pdf figures/vine-v-bear-valley.pdf: data/california-2002-surface.csv data/washington-2004-surface.csv src/case_study_figures.py
python src/case_study_figures.py
clearpdf:
rm main.pdf sup.pdf
clean:
(rm -rf *.ps *.log *.dvi *.aux *.*% *.lof *.lop *.lot *.toc *.idx *.ilg *.ind *.bbl *.blg *.cpt *.out)