-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
293 lines (215 loc) · 7.27 KB
/
Makefile
File metadata and controls
293 lines (215 loc) · 7.27 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
# Lectures
## https://avenue.cllmcmaster.ca/d2l/home/273939
## Request
## http://avenue.mcmaster.ca/course/course_request_check.php
## Activate (cryptic):
## Course admin/course offering information/active (then save)
######################################################################
current: target
-include target.mk
Sources = Makefile README.md LICENSE.md
ms = makestuff
Sources += $(ms)
Makefile: $(ms)/Makefile
touch $@
$(ms)/%.mk: $(ms)/Makefile
touch $@
$(ms)/Makefile:
git submodule update -i $(ms)
touch $@
-include $(ms)/os.mk
-include $(ms)/perl.def
###################################################################
## Directories
### Modules
## A special module (should probably be a clone)
## Resting! investigate
Ignore += $(specdirs)
Sources += popmodules.mk
include popmodules.mk
## Move up one level. Use?
## clonedirs += wayback
clonedirs += WA_Ebola_Outbreak
WA_Ebola_Outbreak:
git clone https://github.com/Outbreak-analysis/WA_Ebola_Outbreak.git
pushdir = ../web/materials
## repodirs have auto-making rules from modules.mk
## mdirs are used by recursive git rules
## repodirs += $(specdirs)
## mdirs = $(specdirs)
mdirs += age bd_models boxes compensation competition dd exploitation exponential life_history life_tables sims structure ts
hotdirs += $(mdirs) $(clonedirs)
Sources += $(mdirs)
######################################################################
## Keeping track of schedule
Sources += lectures.txt
## See .lmk rule
Drop = Define_image_drop_in_local.mk
-include $(ms)/newtalk.def
-include $(ms)/perl.def
-include local.mk
## -include $(ms)/repos.def
##################################################################
## Formatting
## Script is talkdir/lect.pl
## Current rules are in talkdir/txt.format _and_
Sources += local.txt.format
## Copyright notice
Sources += copy.tex
## Directory-specific latex commands
Sources += pop.tex localcomm.tex
######################################################################
## Lectures
Sources += $(wildcard *.txt *.poll)
##################################################################
## Images (pull necessary from an old, bigger my_images)
my_images/%:
$(CP) ~/Dropbox/$@ $@
######################################################################
sandbox.draft.pdf: sandbox.txt
# Unit 1 (Intro)
## intro.pollclean:
intro.poll.csv: intro.txt pollcsv.pl
intro.html: intro.step
intro.outline.pdf: intro.txt
intro.draft.pdf: intro.txt
intro.final.pdf: intro.txt
intro.handouts.pdf: intro.txt
intro.complete.pdf: intro.txt
math.handouts.pdf: math.txt
math.complete.pdf: math.txt
# Unit 2 (Linear population growth)
linear.pollnew:
## linear.pollclean:
linear.poll.csv: linear.txt pollcsv.pl
linear.html: linear.step
linear.outline.pdf: linear.txt
linear.final.pdf: linear.txt
linear.draft.pdf: linear.txt
linear.handouts.pdf: linear.txt
linear.complete.pdf: linear.txt
# Unit 3 (Non-linear population growth)
nonlinear.pollnew:
## nonlinear.pollclean:
nonlinear.poll.csv: nonlinear.txt pollcsv.pl
nonlinear.html: nonlinear.step
nonlinear.outline.pdf: nonlinear.txt
nonlinear.final.pdf: nonlinear.txt
nonlinear.draft.pdf: nonlinear.txt
nonlinear.handouts.pdf: nonlinear.txt
nonlinear.complete.pdf: nonlinear.txt
# Unit 4 (Structured populations)
structure.poll.csv: structure.txt pollcsv.pl
structure.html: structure.step
structure.outline.pdf: structure.txt
structure.final.pdf: structure.txt
structure.draft.pdf: structure.txt
structure.handouts.pdf: structure.txt
structure.complete.pdf: structure.txt
# Unit 5 (Life history)
## life_history.pollclean:
life_history.poll.csv: life_history.txt pollcsv.pl
life_history.html: life_history.step
life_history.outline.pdf: life_history.txt
life_history.final.pdf: life_history.txt
life_history.draft.pdf: life_history.txt
life_history.handouts.pdf: life_history.txt
life_history.complete.pdf: life_history.txt
# Unit 6 (competition)
## competition.pollclean:
competition.poll.csv: competition.txt pollcsv.pl
competition.html: competition.step
competition.outline.pdf: competition.txt
competition.final.pdf: competition.txt
competition.draft.pdf: competition.txt
competition.handouts.pdf: competition.txt
competition.complete.pdf: competition.txt
humble.draft.pdf: humble.txt
humble.html: humble.step
# Unit 7 (exploitation)
## exploitation.pollclean:
exploitation.poll.csv: exploitation.txt pollcsv.pl
exploitation.html: exploitation.step
exploitation.outline.pdf: exploitation.txt
exploitation.draft.pdf: exploitation.txt
exploitation.final.pdf: exploitation.txt
exploitation.handouts.pdf: exploitation.txt
exploitation.complete.pdf: exploitation.txt
# Unit 8 (Disease)
## disease.pollclean:
disease.poll.csv: disease.txt pollcsv.pl
disease.html: disease.step
disease.outline.pdf: disease.txt
disease.final.pdf: disease.txt
disease.draft.pdf: disease.txt
disease.handouts.pdf: disease.txt
disease.complete.pdf: disease.txt
######################################################################
## Note chopping
day1.txt: intro.txt Makefile
perl -npe "last if /Example/" $< | perl -npe "s/CHAPTER.*/CHAPTER Day 1 complete notes/" > $@
day1.complete.pdf: intro.txt
######################################################################
Sources += $(wildcard *.pl)
### NEWPOLL gone 2019 Feb 09 (Sat); don't use poll links anymore
## This can go for 2020 (still using it to clean 2018 lectures)
### Change NEWPOLL back to POLL once link is added
%.pollclean: %.txt
perl -pi -e "s|NEWPOLL.*?everywhere.com/|POLL |" $<
## Poll conversion
## Use semi-colons for MC
## | for separation (or ?; will that work for pdf outputs?)
Ignore += *.poll.csv
%.poll.csv: %.txt pollcsv.pl
$(PUSH)
######################################################################
## Midterm complete notes
## Deprecated 2019 Feb 09 (Sat)
midterm1.txt: nonlinear.txt Makefile
perl -npe "last if /CUTOFF/" $< | perl -npe "s/UNIT.*/UNIT Midterm 1 extra notes/" > $@
## midterm1.complete.pdf: nonlinear.txt
## New paradigm 2019 Feb 09 (Sat)
## Remember to search/destroy old CUTOFF before using
## If we keep these intermediate, they should disappear (and not be committed)
life_history.cut.complete.pdf:
%.cut.txt: %.txt
perl -npe "last if /CUTOFF/" $< | perl -npe "s/UNIT.*/UNIT Extra notes/" > $@
######################################################################
## Pixfiles (too many!!)
aging.html: aging.step
competition.html: competition.step
dandelions.html: dandelions.step
diseases.html: diseases.step
dynamics.html: dynamics.step
ebola.html: ebola.step
evaluation.html: evaluation.step
exploitation.html: exploitation.step
flu.html: flu.step
health.html: health.step
het.html: het.step
hiv.html: hiv.step
import.html: import.step
journals.html: journals.step
life_history.html: life_history.step
logs.html: logs.step
models.html: models.step
nonlinear.html: nonlinear.step
philosophy.html: philosophy.step
populations.html: populations.step
rabies.html: rabies.step
structure.html: structure.step
units.html: units.step
######################################################################
## Local makefiles
Sources += $(wildcard *.local)
jd.lmk:
%.lmk:
$(CPF) $*.local local.mk
######################################################################
-include $(ms)/visual.mk
-include $(ms)/hotcold.mk
-include $(ms)/newtalk.mk
-include $(ms)/texdeps.mk
-include $(ms)/webpix.mk
# -include $(ms)/wrapR.mk
-include $(ms)/git.mk