-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
40 lines (28 loc) · 1.25 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
.PHONY: drake deploy refs postgrad all html pdf docx paper
all: drake
refs: analysis/paper/references.bib
analysis/paper/references.bib: analysis/paper/paper.Rmd
./getcitations
drake: analysis/drake.R
./analysis/drake.R make
paper: html pdf docx
html: analysis/paper/paper.html
analysis/paper/paper.html: refs analysis/paper/paper.Rmd
Rscript -e "rmarkdown::render('analysis/paper/paper.Rmd', 'bookdown::html_document2')"
docx: analysis/paper/paper.docx
analysis/paper/paper.docx: refs analysis/paper/paper.Rmd
Rscript -e "rmarkdown::render('analysis/paper/paper.Rmd', 'bookdown::word_document2')"
pdf: analysis/paper/paper.pdf
analysis/paper/paper.pdf: refs analysis/paper/paper.Rmd
Rscript -e "rmarkdown::render('analysis/paper/paper.Rmd', 'bookdown::pdf_document2')"
deploy:
./analysis/scripts/deploy-paper.sh
postgrad:
./analysis/drake.R make --postgrad
submodel: ./analysis/paper/submodel-rtm.Rmd
Rscript -e "rmarkdown::render('analysis/paper/submodel-rtm.Rmd')"
template:
Rscript -e "rmarkdown::render('analysis/templates/template.Rmd')"
supplement: analysis/paper/supplementary-figures.pdf
analysis/paper/supplementary-figures.pdf: analysis/paper/supplementary-figures.Rmd
Rscript -e "rmarkdown::render('analysis/paper/supplementary-figures.Rmd')"