-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.36 KB
/
Makefile
File metadata and controls
50 lines (36 loc) · 1.36 KB
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
FIGS := $(shell ls fig/fig-*.pdf)
ALL_PDF_FIG := $(shell find . -name fig-\*.pdf)
ALL_EPS_FIG := $(join $(dir $(ALL_PDF_FIG)), $(notdir $(ALL_PDF_FIG:.pdf=.eps)))
LAST_SUBMISSION := e6c6d3ecbe85b68809b6926548e23c99bf4142c5
all: geissmann_et_al_2018.pdf manuscript-changes.pdf
geissmann_et_al_2018.pdf: geissmann_et_al_2018.tex manuscript.pdf all-figures.pdf manuscript.tex functionalities_table.pdf
pdflatex $<
manuscript-final.pdf: manuscript-final.tex
pdflatex $<
functionalities_table.pdf: functionalities_table.tex
pdflatex $<
all-figures.pdf: $(FIGS)
pdftk $^ cat output $@
manuscript.bib: rethomics_manuscript.bib
cat $< | sed 's/journaltitle =/journal =/g' > $@
#cat $< | sed 's/journal =/journal =/g' > $@
manuscript.tex: manuscript.Rnw results.Rnw manuscript.bib
R -e "library(knitr);knit(\"$<\")"
manuscript.pdf: manuscript.tex all-figures.pdf
pdflatex $<
bibtex manuscript.aux
pdflatex $<
pdflatex $<
manuscript-changes.pdf: manuscript.tex all-figures.pdf
latexdiff-vc -r $(LAST_SUBMISSION) $< --pdf --force
mv manuscript-diff$(LAST_SUBMISSION).pdf $@
rm manuscript-diff$(LAST_SUBMISSION).tex
eps_figs: $(ALL_EPS_FIG)
%.eps: %.pdf
@echo converting $< to $@
pdf2ps $< - | ps2eps - > $@
clean:
rm *.log *.aux {manuscript,results}.tex *.out *.pdf *.blg *.bbl *.tdo -f
rm -rf cache/
rm -f fig/*.eps fig/*-tmp.svg
rm manuscript.bib -f