forked from lectroidmarc/SacTraffic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (37 loc) · 1.36 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
#
# Generic Makefile for minified (and possibly aggregated) JavaScript
#
.SUFFIXES: .js .min.js .css .min.css
.PHONY: clean
YUICOMP = java -jar support/yuicompressor-2.4.7.jar
CLOSURE = support/closure.py
FILES = appengine/static/javascript/sactraffic.min.js \
appengine/static/stylesheets/sactraffic.min.css \
appengine/static/javascript/sactraffic-widget.min.js \
appengine/static/stylesheets/widget-blue.min.css \
appengine/static/stylesheets/widget-lectroid.min.css
JS = appengine/static/javascript/date.js \
appengine/static/javascript/incident.js \
appengine/static/javascript/incidentlist.js \
appengine/static/javascript/requestargs.js \
appengine/static/javascript/trafficmap.js \
appengine/static/javascript/trafficnews.js \
appengine/static/javascript/sactraffic.js
WIDGET_JS = appengine/static/javascript/date.js \
appengine/static/javascript/string.js \
appengine/static/javascript/sactraffic-widget.js
CSS = appengine/static/stylesheets/main.css \
appengine/static/stylesheets/awesome.css
all: ${FILES}
appengine/static/javascript/sactraffic.min.js: ${JS}
${CLOSURE} -o $@ $^
appengine/static/javascript/sactraffic-widget.min.js: ${WIDGET_JS}
${CLOSURE} -o $@ $^
appengine/static/stylesheets/sactraffic.min.css: ${CSS}
cat $^ | ${YUICOMP} -o $@ --type css
.js.min.js:
${CLOSURE} -o $@ $<
.css.min.css:
${YUICOMP} -o $@ $<
clean:
rm -f ${FILES}