-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
169 lines (115 loc) · 3.54 KB
/
Makefile
File metadata and controls
169 lines (115 loc) · 3.54 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
# Lecture_images
# Deprecated; keeps pinging all.time
current: target
target = Makefile
-include target.mk
target: $(target)
##################################################################
# make files
## and so on
Sources = Makefile .ignore README.md sub.mk LICENSE.md todo.md
Ignore += .gitignore
## To use a non-local directory, create Lecture_images in the desired place
## Change Drop in local.mk (if desired)
Sources += jd.local
jd:
$(CP) jd.local local.mk
include sub.mk
-include $(ms)/perl.def
imageDrop = $(Drop)/Lecture_images
Sources += images.mk
##################################################################
# Step files
########## General
## Images that represent different countries
countries.html: countries.step
####### Disease spread
## Disease organisms
diseases.html: diseases.step
ebola.html: ebola.step html.pl
hiv.html: hiv.step
flu.html: flu.step
health.html: health.step
## Human heterogeneity
humans.html: humans.step
## Generations
generations.html: generations.step
###### What the hell is this category? Maybe stuff that was here before I started organizing?
import.html: import.step
## Career stuff (I guess)
journals.html: journals.step
##### Selected for 3SS units
competition.html: competition.step
dandelions.html: dandelions.step
life_history.html: life_history.step
logs.html: logs.step
nonlinear.html: nonlinear.step
populations.html: populations.step
structure.html: structure.step
units.html: units.step
######## Selected for ICI3D
models.html: models.step
## Boxcars
dynamics.html: dynamics.step
## Selected for particular talks
aging.html: aging.step
evaluation.html: evaluation.step
rabies.html: rabies.step
math.html: math.step
########################################################################
### Rules for getting stuff
## Here is a list of files that are in the first Dropbox version (under courses) but got there by other means
Sources += copies.txt
steps = $(wildcard *.step)
Sources += $(steps)
Sources += $(wildcard *.pl)
Ignore += *.step.mk
%.step.mk: %.step mk.pl
$(PUSH)
%.html: %.step.mk html.pl
$(MAKE) -f $< -f images.mk images
$(MAKE) -f $< -f images.mk thumbs
$(PUSHSTAR)
stepmks = $(steps:.step=.step.mk)
Ignore += allsteps.mk
allsteps.mk: $(stepmks)
$(cat)
######################################################################
## Pictures from me
## Supposed to be somewhere else (my_images, I guess)
Sources += elegant.jpg
## Digest files
htmls = $(steps:.step=.html)
all.html: $(htmls)
$(cat)
current.html: hiv.html ebola.html models.html import.html
$(cat)
######################################################################
Makefile: files
files:
(touch $(imageDrop)/test && $(LN) $(imageDrop) $@) || $(mkdir)
######################################################################
# Special image rules
files/linked.crop.jpg: files/linked.jpg Makefile
convert -crop 900x550+60+420 $< $@
files/TREE.top.jpg: files/TREE.jpg
convert -crop 340x340+0+0 $< $@
files/rabies_transmission_model.crop.png: files/rabies_transmission_model.png
convert -crop 1400x800+0+0 $< $@
files/recommendations.pdf:
wget -O $@ "http://apps.who.int/iris/bitstream/10665/186275/1/9789241509565_eng.pdf"
files/recommendations.cover.png:
%.cover.png: %-0.pdf
convert -density 300 $< $@
%.png: %.gif
convert $< $@
######################################################################
### Makestuff
-include allsteps.mk
-include $(ms)/git.mk
-include $(ms)/modules.mk
-include $(ms)/visual.mk
-include $(ms)/wrapR/pdf.mk
-include $(ms)/forms.mk
# -include $(ms)/wrapR.mk
# -include $(ms)/oldlatex.mk