-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile
46 lines (31 loc) · 1.3 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
# Make commands/targets for rendering/knitting posts
SRC=_rmd
BUILD=_posts
RMD_IN = $(wildcard $(SRC)/*.Rmd)
RMD_OUT := $(patsubst $(SRC)/%.Rmd,$(BUILD)/%.md,$(RMD_IN))
$(BUILD)/%.md: $(SRC)/%.Rmd
Rscript build_Rmd.R $< $@
posts: $(RMD_OUT)
@echo "Done"
# Make commands/targets for rendering/knitting job docs
cv: docs/svm-cv.pdf docs/svm-cv-jm.pdf
research: docs/svm-research-statement.pdf
resume: docs/svm-resume.pdf
societal: docs/svm-societal-interaction.pdf
teaching: docs/svm-teaching-reflection.pdf docs/svm-teaching-philosophy.pdf
docs/svm-cv.pdf docs/svm-cv-jm.pdf: docs/svm-cv.Rmd
Rscript -e 'source("docs/make_cv.R")'
docs/svm-research-statement.pdf: docs/svm-research-statement.Rmd
Rscript -e 'source("docs/make_research.R")'
docs/svm-resume.pdf: docs/svm-resume.Rmd
Rscript -e 'source("docs/make_resume.R")'
docs/svm-societal-interaction.pdf: docs/svm-societal-interaction.Rmd
Rscript -e 'source("docs/make_societal.R")'
docs/svm-teaching-philosophy.pdf: docs/svm-teaching-philosophy.Rmd
Rscript -e 'source("docs/make_teaching-philosophy.R")'
docs/svm-teaching-reflection.pdf: docs/svm-teaching-reflection.Rmd
Rscript -e 'source("docs/make_teaching-reflection.R")'
# I probably want to do something smarter here, but I just want to get this going
.PHONY: deaux
deaux:
rm -f docs/*.log