forked from genomicsclass/labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
35 lines (29 loc) · 840 Bytes
/
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
week1rmd := $(wildcard week1/*.Rmd)
week2rmd := $(wildcard week2/*.Rmd)
week3rmd := $(wildcard week3/*.Rmd)
week4rmd := $(wildcard week4/*.Rmd)
week5rmd := $(wildcard week5/*.Rmd)
week6rmd := $(wildcard week6/*.Rmd)
week7rmd := $(wildcard week7/*.Rmd)
week8rmd := $(wildcard week8/*.Rmd)
week1md := $(week1rmd:.Rmd=.md)
week2md := $(week2rmd:.Rmd=.md)
week3md := $(week3rmd:.Rmd=.md)
week4md := $(week4rmd:.Rmd=.md)
week5md := $(week5rmd:.Rmd=.md)
week6md := $(week6rmd:.Rmd=.md)
week7md := $(week7rmd:.Rmd=.md)
week8md := $(week8rmd:.Rmd=.md)
all: week1 week2 week3 week4 week5 week6 week7 week8 foot
week1: $(week1md)
week2: $(week2md)
week3: $(week3md)
week4: $(week4md)
week5: $(week5md)
week6: $(week6md)
week7: $(week7md)
week8: $(week8md)
%.md: %.Rmd
cd $(dir $^); Rscript -e 'knit("$(notdir $^)")'
foot:
Rscript footnotes.R