-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathMakefile
105 lines (71 loc) · 2.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
## This is ICI3D/RTutorials
## https://github.com/ICI3D/RTutorials
-include target.mk
-include makestuff/perl.def
vim_session:
bash -cl "vmt"
######################################################################
alldirs += sampling_JD
Sources += $(wildcard *.R)
participatoryDesign2021.Rout: participatoryDesign2021.R
$(pipeR)
######################################################################
Ignore += local.mk
## Your data location
datadir = ../datasets ## Override below
-include local.mk
Ignore += data
data: dir=$(datadir)
data:
$(linkdirname)
######################################################################
## Processing machinery
## Make an answers file that allows batch.pl to convert the published file into something that runs
## There's some confusion as of now (and for a long time up to now) about using batch/ vs. using batchdir; I should clear that up before I resume using this
batchdir = .
Ignore += batch
batch:
$(mkdir)
Sources += batch.pl
.PRECIOUS: batch/%.R
batch/%.R: %.R %.answers.R batch.pl
$(MAKE) batch
$(PUSHRO)
## batch/ICI3D_RTutorial_1.R: batch.pl
%.batch.Rout: batch/%.R
$(pipeR)
- $(MV) $(batchdir)/Rplots.pdf .
Sources += batch.md
## ICI3D_Lab3_EpiStudyDesign.batch.Rout: ICI3D_Lab3_EpiStudyDesign.answers.R
## ICI3D_RTutorial_1.batch.Rout: ICI3D_RTutorial_1.answers.R
## ICI3D_RTutorial_2.batch.Rout: ICI3D_RTutorial_2.R ICI3D_RTutorial_2.answers.R
## ICI3D_RTutorial_4_VisualizingData.Rout: ICI3D_RTutorial_4_VisualizingData.R ICI3D_RTutorial_4_VisualizingData.answers.R
## batch/ICI3D_RtvTutorial_4.R: ICI3D_RtvTutorial_4.R ICI3D_RtvTutorial_4.answers.R
## ICI3D_RtvTutorial_4.batch.Rout: ICI3D_RtvTutorial_4.R ICI3D_RtvTutorial_4.answers.R
## Deprecated, use batchdir
ICI3D_RtvTutorial_4.batch.Rout: batch/ICI3D_RtvTutorial_4.R
$(pipeR)
- mv data/visualizingData/Rplots.pdf .
## Not working, something about where is the data!
ICI3D_RTutorial_5_DataCleaning.batch.Rout: batchdir=data/dataCleaning/
## ICI3D_RTutorial_5_DataCleaning.batch.Rout: ICI3D_RTutorial_5_DataCleaning.R ICI3D_RTutorial_5_DataCleaning.answers.R
######################################################################
## New sandbox (see also content.mk)
## Follow-up
hetero_play.Rout: HetSIR_functions.Rdata hetero_play.R
$(pipeR)
HetSIR.Rout: HetSIR_functions.Rdata HetSIR.R
######################################################################
### Makestuff
## Makefile gutted 2021 Jun 21 (Mon)
Sources += Makefile content.mk
Ignore += makestuff
msrepo = https://github.com/dushoff
Makefile: makestuff/Makefile
makestuff/Makefile:
git clone $(msrepo)/makestuff
ls makestuff/Makefile
-include makestuff/os.mk
-include makestuff/pipeR.mk
-include makestuff/git.mk
-include makestuff/visual.mk