-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (50 loc) · 2.11 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
GIT = 36a960d # second submission
all: ms/LMA_method.pdf ms/LMA_method.docx ms/LMA_method-diff$(GIT).pdf ms/response_letter_2.pdf ms/SI.pdf
#docker: ms/LMA_method.pdf ms/diff.pdf
local: ms/leaf_disc.bib
si: ms/SI.pdf ms/SI.docx ms/s4.pdf ms/s5.pdf ms/s6.pdf ms/s3.pdf
dif: ms/LMA_method-diff$(GIT).pdf
ms/LMA_method.pdf: ms/LMA_method.Rmd values.yml figs/* ms/leaf_disc.bib
R -e 'system.time(rmarkdown::render("$<", "bookdown::pdf_document2"))'
ms/LMA_method.docx: ms/LMA_method.Rmd values.yml figs/* ms/leaf_disc.bib
R -e 'system.time(rmarkdown::render("$<", "bookdown::word_document2"))'
ms/LMA_method-diff$(GIT).pdf: ms/LMA_method.tex
latexdiff-vc --git --flatten --force -r $(GIT) $^ ; \
cd ms; pdflatex LMA_method-diff$(GIT).tex
ms/cover.pdf: ms/cover.md
pandoc $< \
--template ms/templates/eisvogel2.tex \
-o $@
ms/cover.docx: ms/cover.md
pandoc $< \
--reference-doc ms/templates/cover_style.docx \
-o $@
ms/SI.pdf: ms/SI.Rmd values.yml figs/* ms/leaf_disc.bib data/*
R -e 'system.time(rmarkdown::render("$<", "bookdown::pdf_document2"))'
ms/SI.docx: ms/SI.Rmd values.yml figs/* ms/leaf_disc.bib data/*
R -e 'system.time(rmarkdown::render("$<", "bookdown::word_document2"))'
ms/s3.pdf: ms/s3.Rmd ms/leaf_disc.bib data/*
R -e 'system.time(rmarkdown::render("$<", "bookdown::pdf_document2"))'
ms/s4.pdf: ms/s4.Rmd ms/leaf_disc.bib data/*
R -e 'system.time(rmarkdown::render("$<", "bookdown::pdf_document2"))'
ms/s5.pdf: ms/s5.Rmd ms/leaf_disc.bib data/*
R -e 'system.time(rmarkdown::render("$<", "bookdown::pdf_document2"))'
ms/s6.pdf: ms/s6.Rmd ms/leaf_disc.bib data/*
R -e 'system.time(rmarkdown::render("$<", "bookdown::pdf_document2"))'
# ms/leaf_disc.bib: ~/trait-method.bib
# cp $< $@
ms/response_letter.pdf: ms/response_letter.Rmd
R -e 'system.time(rmarkdown::render("$<", "all"))'
ms/response_letter.docx: ms/response_letter.Rmd
R -e 'system.time(rmarkdown::render("$<", "all"))'
ms/response_letter_2.pdf: ms/response_letter_2.Rmd
R -e 'system.time(rmarkdown::render("$<", "pdf_document"))'
.PHONY: clean
clean:
rm -f ms/*.tuc \
ms/*.log \
ms/*.aux\
ms/*.fdb_* \
ms/*.gz \
ms/*.fls
rm -rf docs/components