-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (21 loc) · 1.26 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
.PHONY: all
# this is a list of all the things that you want your make file to try to produce
# note that I need only to state the ultimate outputs I want, not all the intermediary ones
# since make realises that the dependencies need be run to produce a given output
all: results/prior_predictive_dilutions.pdf
# this is a recipe to make data/processed/prior_predictive_dose_response.rds
# the only dependency for this file is src/r/prior_predictive_simulations.R
# Rscript $< runs the file. The $< is a shorthand for referring to the first dependency,
# so make interprets this as Rscript src/r/prior_predictive_simulations.R
data/processed/prior_predictive_dose_response.rds: src/r/prior_predictive_simulations.R
Rscript $<
# this recipe shows that results/prior_predictive_dilutions.pdf depends on two things:
# src/r/prior_predictive_plot.R and data/processed/prior_predictive_dose_response.rds
# the \ at then end of the first line just allows us to list dependencies across
# lines rather than a long list
results/prior_predictive_dilutions.pdf: src/r/prior_predictive_plot.R\
data/processed/prior_predictive_dose_response.rds
Rscript $<
results/real_data_CVA6/uncertainty_ppc.pdf: src/r/fit_model_real_data_CA6_ppc.R\
data/raw/CA6_raw_well_observations.csv
Rscript $<