-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
340 lines (249 loc) · 8.87 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
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
## This is 3SS/Lectures
current: target
-include target.mk
## https://avenue.cllmcmaster.ca/d2l/home/595825
######################################################################
## Getting started
## Request
#### http://avenue.mcmaster.ca/course/course_request_check.php
## Activate (cryptic):
#### Course admin/course offering information/active (then save)
## UPDATE this number EVERYWHERE!
## :%s/413706/595825/g
######################################################################
-include allsteps.mk
-include makestuff/newtalk.def
-include makestuff/perl.def
######################################################################
vim_session:
bash -cl "vmt notes.md lectures.txt"
## README is for people who might want to actually fork this; may not be up to date
Sources += Makefile README.md notes.md hours.md
## Keeping track of schedule
Sources += lectures.txt
######################################################################
## Kind of a mish-mash, and could maybe be merged
## Resource documents (starting with course evaluations from 2021)
## resources/eval2024.pdf
Ignore += resources
resources:
$(LN) /home/dushoff/Dropbox/resources/3SS/ $@
Ignore += swamp.jpg
swamp.jpg: resources/swamp_orig.jpg Makefile
convert -crop 5760x2304+0+1000 -scale 41.67% $< $@
## convert -crop 5760x2304 -scale 41.67% $< $@
Sources += drop.md
## drop.filemerge: drop.md
######################################################################
######################################################################
# mdirs += boxes life_tables sims
pardirs += exponential ts web
pardirs += compensation bd_models WA_Ebola_Outbreak dd
pardirs += Life_tables structure life_history age competition
pardirs += exploitation sims boxes
pardirs += covidCA
pushdir = web/materials/
hotdirs += $(pardirs)
alldirs += $(pardirs)
######################################################################
## Lectures
Sources += $(wildcard *.txt *.poll)
# Unit 1 (Intro)
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
intro.handouts.docx: intro.handouts.tex
math.handouts.pdf: math.txt
math.complete.pdf: math.txt
# Unit 2 (Linear population growth)
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
linear.handouts.pdf.pd:
linear.handouts.docx.pd:
linear.complete.pdf.pd:
# Unit 3 (Non-linear population growth)
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
## delay.txt a suppressed section of nonlinear (2021)
# 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.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
life_history.cut.complete.pdf: life_history.txt
# Unit 6 (competition)
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 (predation)
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
exploitation.cut.complete.pdf: exploitation.txt
## 2022 had disease and a corona supplement; don't know how much was taught
## It was not a disaster, but may be dated because we've gone so much further with corona now
## Merged version 2022 Mar 27 (Sun)
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
# Unit 8B (Corona supplement)
# Special lesson 2020 (early!) All deleted
# Supplement 2022 put in its place
## 2024: Lifting pathogen aggressiveness; probably pretty deprecated now
corona.poll.csv: corona.txt pollcsv.pl
corona.html: corona.step
corona.outline.pdf: corona.txt
corona.final.pdf: corona.txt
corona.draft.pdf: corona.txt
corona.handouts.pdf: corona.txt
corona.complete.pdf: corona.txt
helping.html: helping.step
helping.outline.pdf: helping.txt
helping.final.pdf: helping.txt
helping.draft.pdf: helping.txt
helping.handouts.pdf: helping.txt
helping.complete.pdf: helping.txt
######################################################################
## webpix/dd
Ignore += Heliconius_mimicry.cropped.png
Heliconius_mimicry.cropped.png: webpix/Heliconius_mimicry.png Makefile
convert -crop 2100x1035+0+1072 $< $@
######################################################################
Sources += germ.md
######################################################################
pandoc_r = pandoc -o $@ $<
%.handouts.docx: %.handouts.tex
$(pandoc_r)
######################################################################
## Midterm complete notes
## Remember to search/destroy old CUTOFF before using
## If we keep these intermediate, they should disappear (and not be committed)
## structure.cut.complete.pdf: structure.txt
## life_history.cut.complete.pdf: life_history.txt
## competition.cut.complete.pdf: competition.txt
%.cut.txt: %.txt
perl -npe "last if /CUTOFF/" $< | perl -npe "s/UNIT.*/UNIT Provisional notes/" > $@
######################################################################
## Image directories
imageDrop = ~/Dropbox/3SS
## echo "imageDrop = ~/Dropbox/courses/3SS" > local.mk ##
Ignore += local.mk
-include local.mk
testsetup:
cp ../local.mk .
######################################################################
## 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
######################################################################
## 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
## I am using the pop.tex that is here and which is suspiciously similar to
## makestuff/lect/pop.tex; unify or otherwise figure out
## I think the lect/ version is in other 3SS directories
Sources += pop.tex localcomm.tex
######################################################################
Sources += $(wildcard *.pl)
## 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)
######################################################################
## Video manipulation
Ignore += video
video/%: video
video: dir = ~/Dropbox/courses/3SS/2021/videos/
video:
$(linkdirname)
Ignore += *.mp4
## Edit the stylus/fangirl lecture
0122.1.mp4: video/0122.mp4
ffmpeg -y -i $< -ss 7 -to 792 -acodec copy $@
0122.2.mp4: video/0122.mp4
ffmpeg -y -i $< -ss 832 -acodec copy $@
video/0122.edit.mp4: 0122.1.mp4 0122.2.mp4 0122.comb.txt
######################################################################
### Makestuff
Ignore += makestuff
msrepo = https://github.com/dushoff
Makefile: makestuff/Makefile
makestuff/Makefile:
git clone $(msrepo)/makestuff
ls $@
-include makestuff/os.mk
-include makestuff/newtalk.mk
-include makestuff/texj.mk
-include makestuff/webpix.mk
-include makestuff/hotcold.mk
-include makestuff/video.mk
-include makestuff/ldrop.mk
-include makestuff/git.mk
-include makestuff/visual.mk
-include makestuff/projdir.mk