-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 1.17 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
# final output
all: upload/plot/dls.png
# db.R + [www] -> catch.csv + survey.csv + summary.csv
db/catch.csv: db.R
Rscript --vanilla db.R
db/survey.csv: db.R
Rscript --vanilla db.R
db/summary.csv: db.R
Rscript --vanilla db.R
# input.R + catch.csv + survey.csv -> input.RData
input/input.RData: input.R db/catch.csv db/survey.csv
Rscript --vanilla input.R
# model.R + input.RData -> dls.txt
model/dls.txt: model.R input/input.RData
Rscript --vanilla model.R
# output.R + dls.txt -> dls.txt
output/dls.txt: output.R model/dls.txt
Rscript --vanilla output.R
# upload.R + catch.csv + survey.csv + summary.csv + dls.txt
# -> catch.csv + survey.csv + summary.csv + dls.txt
upload/input/catch.csv: upload.R db/catch.csv
Rscript --vanilla upload.R
upload/input/survey.csv: upload.R db/survey.csv
Rscript --vanilla upload.R
upload/input/summary.csv: upload.R db/summary.csv
Rscript --vanilla upload.R
upload/output/dls.txt: upload.R output/dls.txt
Rscript --vanilla upload.R
# xtra_plot.R + survey.csv + dls.txt -> dls.png
upload/plot/dls.png: xtra_plot.R upload/input/survey.csv upload/output/dls.txt
Rscript --vanilla xtra_plot.R
clean:
Rscript --vanilla -e "icesTAF::clean()"