-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
150 lines (107 loc) · 3.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
## This is daiddweb (pages branch of DAIDD)
## cerve: jekyll.log ## takes care of local config (don't use serve)
## http://localhost:4167/schedule/?shadow
## http://localhost:4167/schedule/
## http://www.ici3d.org/DAIDD/schedule/
## http://localhost:4167/
## http://localhost:4167/schedule/shadow?shadow
## http://localhost:4167/schedule/test
## https://github.com/ICI3D/DAIDD/tree/gh-pages
## http://www.ici3d.org/
## http://www.ici3d.org/DAIDD/
## http://www.ici3d.org/DAIDD/schedule/time03
## http://www.ici3d.org/DAIDD/schedule/2019.html
## http://www.ici3d.org/DAIDD/schedule/2018.html
current: target
-include target.mk
# include makestuff/perl.def
######################################################################
# Content
vim_session:
bash -cl "vmt schedule/index.md"
## alldirs += ICI3D.github.io
ICI3D.github.io/_config.yml:
git submodule update -i
cerve: ICI3D.github.io/_config.yml
./run.sh > jekyll.log 2>&1 &
Sources += _config.yml _localconfig.yml notes.md
Ignore += Gemfile Gemfile.lock
## When is sudo needed here???
## Almost always, I think, though auto-advice does not seem to agree.
## jd.gm:
%.gm: Gemfile.%
$(LNF) $< Gemfile
sudo bundle install
Sources += $(wildcard */shadow.md)
######################################################################
## Note; this is where the easy header stuff is.
## jekyll needs to be restarted when it changes
Sources += _config.yml
## This is something else
Sources += _localconfig.yml
Sources += ICI3D.github.io
######################################################################
## This stuff should all be structured better, and probably be in the parent repo
-include makestuff/perl.def
Sources += index.md shadow_rules.md
Sources += $(wildcard schedule/*.top schedule/*.md)
Sources += $(wildcard *.pl)
## Rewrite to use pushro and a smarter script?
## Rewrite to use the full crazy lecture/format world?
## schedule/index.md: schedule/test.md; $(copy)
## Schedule not made for DAIDD 2020 (points to time zones)
Sources += scsv.pl
schedule/example.tsv: schedule/shadow.md scsv.pl
$(PUSH)
## schedule/test.md.compare: faculty.tsv shadow.pl
Sources += faculty.tsv
schedule/test.md: schedule/index.top faculty.tsv schedule/shadow.md shadow.pl
$(rm)
$(CAT) $< > $@
perl -wf shadow.pl faculty.tsv schedule/shadow.md >> $@
$(readonly)
zones = time10 time08 time03 time02 time01 time00 time09 time11 time14 time16 time17
times = $(zones:%=schedule/%.md)
time_setup: $(times)
## schedule/time03.md: shadow.pl timeshadow.pl
schedule/time%.md: schedule/index.top schedule/test.md timeshadow.pl
$(rm)
perl -wf timeshadow.pl $* schedule/test.md >> $@
$(readonly)
schedule/planOverview.md: schedule/planOverview.top schedule/index.md rp.pl
$(rm)
$(CAT) $< > $@
perl -wf rp.pl schedule/index.md | cat -s >> $@
$(readonly)
## git rm preparation/shadow.md ##
Sources += $(wildcard preparation/*.md)
Sources += $(wildcard Materials/*.md)
Sources += $(wildcard participants/*.md)
######################################################################
## Add time codes
# schedule/new.md.timecodes: schedule/new.md
%.timecodes: %
perl -i -wf timecodes.pl $<
new.timecodes.md: schedule/new.md timecodes.pl
$(PUSH)
######################################################################
Sources += roadmap/index.md $(wilcard roadmap/*.png)
######################################################################
Sources += logistics/*.md
## logistics/montfleur.md has the most recent copy of in-person logistics
######################################################################
### Makestuff
Sources += Makefile
## Sources += content.mk
## include content.mk
Ignore += makestuff
msrepo = https://github.com/dushoff
Makefile: makestuff/Makefile
makestuff/Makefile:
git clone $(msrepo)/makestuff
ls $@
-include makestuff/os.mk
-include makestuff/compare.mk
-include makestuff/git.mk
-include makestuff/gitbranch.mk
-include makestuff/visual.mk