-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
21 lines (17 loc) · 1.03 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
manuscript: manuscript.pdf Appendix_S1.pdf
manuscript.pdf: tex/manuscript.tex tex/model_integration.bib tex/model_integration.bst \
tex/figs/ex1_Sampling.pdf tex/figs/ex1_map.png tex/figs/ex1_precip.pdf \
tex/figs/ex2_params.pdf tex/figs/ex2_response.pdf tex/figs/management.pdf \
tex/figs/ex2_fut_map.png tex/figs/ex2_pres_map.png
# the first line performs a wordcount and inserts it directly into the manuscript
cd tex; ./wordcount.sh
cd tex; pdflatex manuscript; bibtex manuscript; pdflatex manuscript; \
pdflatex manuscript
mv tex/manuscript.pdf manuscript.pdf
Appendix_S1.pdf: tex/appendix_s1.tex tex/diagram.tex tex/model_integration.bib tex/model_integration.bst
cd tex; pdflatex appendix_s1; bibtex appendix_s1; pdflatex appendix_s1; pdflatex appendix_s1
mv tex/appendix_s1.pdf Appendix_S1.pdf
clean:
cd tex; rm -f *.aux *.log *.bbl *.blg *.loc *.gz *.cut .msbak
wordcounts: tex/manuscript.tex
cd tex; texcount -sub=none manuscript.tex | perl -ne 'print if s/(\d+)\+.+(abstract|manuscript|figures|references|biosketch)/$$2: $$1/'