forked from developmentseed/openlayers_plus
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
69 lines (58 loc) · 2.02 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
UGLIFYJS = ./node_modules/.bin/uglifyjs
BANNER = ./node_modules/.bin/banner
dist: dist_setup dist/wax.ol.min.js \
dist/wax.g.min.js dist/wax.mm.min.js \
dist/wax.esri.min.js \
dist/wax.leaf.min.js lint
# mindist: dist_setup dist/wax.g.min.js dist/wax.mm.min.js dist/wax.leaf.min.js lint
dist/wax.ol.min.js:
cat build/header.js \
lib/*.js \
connectors/ol/*.js \
control/lib/*.js \
control/ol/*.js > dist/wax.ol.js
$(UGLIFYJS) dist/wax.ol.js > dist/wax.ol.min.js
dist/wax.g.min.js:
cat build/header.js \
lib/*.js \
control/lib/*.js \
control/g/*.js \
connectors/g/*.js > dist/wax.g.js
$(UGLIFYJS) dist/wax.g.js > dist/wax.g.min.js
dist/wax.mm.min.js:
cat build/header.js \
lib/*.js \
control/lib/*.js \
control/mm/*.js \
connectors/mm/*.js > dist/wax.mm.js
$(UGLIFYJS) dist/wax.mm.js > dist/wax.mm.min.js
dist/wax.leaf.min.js:
cat build/header.js \
lib/*.js \
control/lib/*.js \
control/leaf/*.js \
connectors/leaf/*.js > dist/wax.leaf.js
$(UGLIFYJS) dist/wax.leaf.js > dist/wax.leaf.min.js
dist/wax.esri.min.js:
cat build/header.js \
lib/*.js \
control/lib/*.js \
control/esri/*.js \
connectors/esri/*.js > dist/wax.esri.js
$(UGLIFYJS) dist/wax.esri.js > dist/wax.esri.min.js
dist_setup:
rm -rf dist
rm -rf build
mkdir dist
mkdir build
$(BANNER) package.json > build/header.js
ext:
-test ! -d ext && mkdir ext
wget --no-check-certificate http://openlayers.org/api/2.10/OpenLayers.js -O ext/OpenLayers.js
wget --no-check-certificate https://raw.github.com/CloudMade/Leaflet/master/dist/leaflet.js -O ext/leaflet.js
wget --no-check-certificate https://raw.github.com/CloudMade/Leaflet/master/dist/leaflet.css -O ext/leaflet.css
wget --no-check-certificate https://raw.github.com/CloudMade/Leaflet/master/dist/leaflet.ie.css -O ext/leaflet.ie.css
wget --no-check-certificate https://github.com/stamen/modestmaps-js/raw/v0.17.0/modestmaps.min.js -O ext/modestmaps.min.js
lint:
./node_modules/.bin/jshint control/lib/*.js control/mm/*.js control/leaf/*.js --config=jshint.json
.PHONY: clean ext