-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
271 lines (205 loc) · 7.09 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
RM = rm -rf
CONFIG_SCRIPT = tools/configure.py
TARGET = build
CSSLINTFLAGS = --quiet --errors=empty-rules,import,errors --warnings=duplicate-background-images,compatible-vendor-prefixes,display-property-grouping,fallback-colors,duplicate-properties,shorthand,gradients,font-sizes,floats,overqualified-elements,import,regex-selectors,rules-count,unqualified-attributes,vendor-prefix,zero-units
MINIMIZE = java -jar tools/yuicompressor-2.4.7.jar --nomunge
.PHONY: all clean lint csslint jshint min CS2114 CS2114SS215 CS223 CS5114 CS3114 CS3114F15 CS3114notes CS150 OpenDSA test testX IS allBooks nomin pull CPSC270S15 CS2401 COP3530 CS208 ECE252 Tutorial TDDD86F15 TDDC91F15 S15 CSCI115 CS316 CSE017F15 CS340 CS260F15
all: lint
clean:
- $(RM) *~
- $(RM) Books
@# Remove minified JS and CSS files
- $(RM) lib/*-min.*
- $(RM) Doc/*~
- $(RM) Scripts/*~
- $(RM) config/*~
lint: csslint jshint
csslint:
@echo 'running csslint'
@csslint $(CSSLINTFLAGS) AV/Sorting/*.css
@csslint $(CSSLINTFLAGS) AV/Hashing/*.css
@csslint $(CSSLINTFLAGS) AV/*.css
@csslint $(CSSLINTFLAGS) Doc/*.css
@csslint $(CSSLINTFLAGS) lib/*.css
jshint:
@echo 'running jshint'
-@jshint AV/Sorting/*.js
-@jshint AV/Hashing/*.js
-@jshint Exercises/Hashing/*.js
-@jshint lib/odsaUtils.js
-@jshint lib/odsaAV.js
-@jshint lib/odsaMOD.js
-@jshint lib/gradebook.js
jsav:
cp NewKA/OpenDSA/JSAV/build/JSAV-min.js JSAV/build
cp NewKA/OpenDSA/JSAV/build/JSAV.js JSAV/build
$(RM) JSAV/lib
cp -r NewKA/OpenDSA/JSAV/lib JSAV/lib
$(RM) JSAV/css
cp -r NewKA/OpenDSA/JSAV/css JSAV/css
$(RM) JSAV/extras
cp -r NewKA/OpenDSA/JSAV/extras JSAV/extras
$(RM) JSAV/examples
cp -r NewKA/OpenDSA/JSAV/examples JSAV/examples
update: jsav docopy min
docopy:
$(RM) AV
cp -r NewKA/OpenDSA/AV AV
$(RM) DataStructures
cp -r NewKA/OpenDSA/DataStructures DataStructures
$(RM) config
cp -r NewKA/OpenDSA/config config
$(RM) Doc
cp -r NewKA/OpenDSA/Doc Doc
$(RM) Exercises
cp -r NewKA/OpenDSA/Exercises Exercises
$(RM) lib
mkdir lib
-cp NewKA/OpenDSA/lib/* lib
cp -r NewKA/OpenDSA/lib/CodeMirror-5.5.0 lib/CodeMirror-5.5.0
$(RM) lib/*-min.*
$(RM) tools
cp -r NewKA/OpenDSA/tools tools
$(RM) RST
cp -r NewKA/OpenDSA/RST RST
$(RM) khan-exercises
cp -r NewKA/OpenDSA/khan-exercises khan-exercises
$(RM) SourceCode
cp -r NewKA/OpenDSA/SourceCode SourceCode
cp NewKA/OpenDSA/WebServer .
- $(RM) Doc/build
cd Doc; make
min: nomin
# lib/odsaUtils-min.js lib/site-min.css lib/odsaAV-min.js lib/odsaAV-min.css lib/khan-exercise-min.js lib/odsaMOD-min.js lib/odsaMOD-min.css lib/gradebook-min.js lib/gradebook-min.css
nomin:
@cp JSAV/build/JSAV.js JSAV/build/JSAV-min.js
@cp lib/odsaUtils.js lib/odsaUtils-min.js
@cp lib/odsaMOD.js lib/odsaMOD-min.js
@cp lib/odsaAV.js lib/odsaAV-min.js
@cp lib/odsaKA.js lib/odsaKA-min.js
@cp lib/gradebook.js lib/gradebook-min.js
@cp lib/registerbook.js lib/registerbook-min.js
@cp lib/site.css lib/site-min.css
@cat lib/normalize.css lib/odsaAV.css > lib/odsaAV-min.css
@cp lib/odsaMOD.css lib/odsaMOD-min.css
@cp lib/odsaStyle.css lib/odsaStyle-min.css
@cp lib/odsaKA.css lib/odsaKA-min.css
@cp lib/gradebook.css lib/gradebook-min.css
F15: CS2114 CS3114F15 CS316 TDDD86F15 TDDC91F15 TDDI16F15 CSE017F15 CPSC270 COP3530 CISC-187 C2GEN CS226JHU CS340 CS260F15
Tutorial: min
python $(CONFIG_SCRIPT) config/Tutorial.json
TDDD86F15: min
python $(CONFIG_SCRIPT) config/TDDD86F15.json
TDDC91F15: min
python $(CONFIG_SCRIPT) config/TDDC91F15.json
TDDI16F15: min
python $(CONFIG_SCRIPT) config/TDDI16F15.json
RecurTutor: min
python $(CONFIG_SCRIPT) config/RecurTutor.json
RecurTutor2: min
python $(CONFIG_SCRIPT) config/RecurTutor2.json
CS226JHU: min
python $(CONFIG_SCRIPT) config/CS226JHU.json -o CS226JHUS16
CISC-187: min
python $(CONFIG_SCRIPT) config/CISC-187.json
CSCI102: min
python $(CONFIG_SCRIPT) config/CSCI102.json
CSCI115: min
python $(CONFIG_SCRIPT) config/CSCI115S15.json
CS150: min
python $(CONFIG_SCRIPT) config/CS150.json
CSE017F15: min
python $(CONFIG_SCRIPT) config/CSE017F15.json
CPSC270: min
python $(CONFIG_SCRIPT) config/CPSC270F15.json
CSCI204: min
python $(CONFIG_SCRIPT) config/CSCI204S15.json
CS208: min
python $(CONFIG_SCRIPT) config/CS208.json
CS223: min
python $(CONFIG_SCRIPT) config/CS223.json
CSE-A1140: min
python $(CONFIG_SCRIPT) config/CSE-A1140.json
CSE-A1141: min
python $(CONFIG_SCRIPT) config/CSE-A1141.json
CSE-A1141eng: min
python $(CONFIG_SCRIPT) config/CSE-A1141eng.json
CS2114SS215: min
python $(CONFIG_SCRIPT) config/CS2114SS215.json
CS2114: min
python $(CONFIG_SCRIPT) config/CS2114.json
CS2401: min
python $(CONFIG_SCRIPT) config/CS2401.json
CS260F15: min
python $(CONFIG_SCRIPT) config/CS260F15.json
CS3114: min
python $(CONFIG_SCRIPT) config/CS3114.json
CS3114F15: min
python $(CONFIG_SCRIPT) config/CS3114F15Cao.json
python $(CONFIG_SCRIPT) config/CS3114F15Barnette.json
CS3114notes: min
python $(CONFIG_SCRIPT) -s config/CS3114notes.json
CS316: min
python $(CONFIG_SCRIPT) config/CS316.json
CS340: min
python $(CONFIG_SCRIPT) config/CS340.json
COP3530: min
python $(CONFIG_SCRIPT) config/COP3530F15.json
CS4104S15: min
python $(CONFIG_SCRIPT) config/CS4104S15.json
CS5114: min
python $(CONFIG_SCRIPT) config/CS5114S16.json
CS5114S15: min
python $(CONFIG_SCRIPT) config/CS5114S15.json
ECE252: min
python $(CONFIG_SCRIPT) config/ECE252S15.json
OpenDSA: min
python $(CONFIG_SCRIPT) config/OpenDSA.json
test: min
python $(CONFIG_SCRIPT) config/test.json
testfi: min
python $(CONFIG_SCRIPT) config/testfi.json
testpt: min
python $(CONFIG_SCRIPT) config/testpt.json
testcmap: min
python $(CONFIG_SCRIPT) config/testcmap.json
uwosh-pl: min
python $(CONFIG_SCRIPT) config/uwosh-pl.json
Dev: min
python $(CONFIG_SCRIPT) config/Dev.json
Everything: min
python $(CONFIG_SCRIPT) config/Everything.json
good: min
python $(CONFIG_SCRIPT) config/good.json
invalid: min
python $(CONFIG_SCRIPT) config/invalid.json
C2GEN: min
python $(CONFIG_SCRIPT) config/C2GEN.json
allBooks: CS2114 CS2401 CS3114 OpenDSA Everything testcmap
lib/odsaUtils-min.js: lib/odsaUtils.js
@echo 'Minimizing lib/odsaUtils.js'
@$(MINIMIZE) lib/odsaUtils.js -o lib/odsaUtils-min.js
lib/site-min.css: lib/site.css
@echo 'Minimizing lib/site.css'
-@$(MINIMIZE) lib/site.css -o lib/site-min.css
lib/odsaAV-min.js: lib/odsaAV.js
@echo 'Minimizing lib/odsaAV.js'
@$(MINIMIZE) lib/odsaAV.js -o lib/odsaAV-min.js
lib/odsaAV-min.css: lib/odsaAV.css
@echo 'Minimizing lib/odsaAV.css'
@$(MINIMIZE) lib/odsaAV.css -o lib/odsaAV-min.css
lib/khan-exercise-min.js: ODSAkhan-exercises/khan-exercise.js
@echo 'Minimizing lib/khan-exercise.js'
@$(MINIMIZE) ODSAkhan-exercises/khan-exercise.js -o lib/khan-exercise-min.js
lib/odsaMOD-min.js: lib/odsaMOD.js
@echo 'Minimizing lib/odsaMOD.js'
@$(MINIMIZE) lib/odsaMOD.js -o lib/odsaMOD-min.js
lib/odsaMOD-min.css: lib/odsaMOD.css
@echo 'Minimizing lib/odsaMOD.css'
@$(MINIMIZE) lib/odsaMOD.css -o lib/odsaMOD-min.css
lib/gradebook-min.js: lib/gradebook.js
@echo 'Minimizing lib/gradebook.js'
@$(MINIMIZE) lib/gradebook.js -o lib/gradebook-min.js
lib/gradebook-min.css: lib/gradebook.css
@echo 'Minimizing lib/gradebook.css'
@$(MINIMIZE) lib/gradebook.css -o lib/gradebook-min.css