forked from aaronlidman/osmly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (58 loc) · 1.31 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
OSMLY_JS = \
js/osmly/settings.js \
js/osmly/osmly.js \
js/osmly/osmly.auth.js \
js/osmly/osmly.map.js \
js/osmly/osmly.ui.js \
js/osmly/osmly.mode.js \
js/osmly/osmly.connect.js \
js/osmly/osmly.import.js \
js/osmly/osmly.overview.js \
js/osmly/osmly.qa.js \
js/osmly/common.js \
js/osmly/animations.js
CSS = \
js/lib/leaflet-0.7.2/leaflet.css \
css/leaflet.label.css \
css/css.css \
css/leaflet-overwrite.css \
css/animations.css \
css/modal.css
JS_LIBS = \
js/lib/leaflet-0.7.2/leaflet.js \
js/lib/Bing.js \
js/lib/leaflet.draw.js \
js/lib/leaflet.label.js \
js/lib/osm_geojson.js \
js/lib/osmauth.js \
js/lib/sha.js \
js/lib/modal.js \
js/lib/zepto.js
all: \
clean \
dist/osmly.min.js \
dist/libs.min.js \
dist/osmly.min.css
dist/osmly.js: $(OSMLY_JS) Makefile
@rm -f $@
cat $(OSMLY_JS) >> $@
dist/osmly.min.js: dist/osmly.js Makefile
@rm -f $@
node_modules/.bin/uglifyjs $< -c -m -o $@
dist/libs.js: $(JS_LIBS) Makefile
@rm -f $@
cat $(JS_LIBS) >> $@
dist/libs.min.js: dist/libs.js Makefile
@rm -f $@
node_modules/.bin/uglifyjs $< -c -m -o $@
rm -f dist/libs.js
dist/osmly.css: $(CSS) Makefile
@rm -f $@
cat $(CSS) >> $@
dist/osmly.min.css: dist/osmly.css Makefile
@rm -f $@
node_modules/.bin/uglifycss $< > $@
rm -rf dist/osmly.css
clean:
rm -rf dist/*.js
rm -rf dist/*.css