forked from simplegeo/polymaps
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
46 lines (40 loc) · 764 Bytes
/
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
JS_FILES = \
src/start.js \
src/ns.js \
src/Id.js \
src/Svg.js \
src/Transform.js \
src/Cache.js \
src/Url.js \
src/Dispatch.js \
src/Queue.js \
src/Map.js \
src/Layer.js \
src/Image.js \
src/GeoJson.js \
src/Dblclick.js \
src/Drag.js \
src/Wheel.js \
src/Arrow.js \
src/Hash.js \
src/Touch.js \
src/Interact.js \
src/Compass.js \
src/Grid.js \
src/Stylist.js \
src/end.js
JS_COMPILER = \
java -jar lib/google-compiler/compiler-20100616.jar \
--charset UTF-8
all: polymaps.min.js polymaps.js
%.min.js: %.js
$(JS_COMPILER) < $^ > $@
polymaps.min.js: polymaps.js
rm -f $@
$(JS_COMPILER) < polymaps.js >> $@
polymaps.js: $(JS_FILES) Makefile
rm -f $@
cat $(JS_FILES) >> $@
chmod a-w $@
clean:
rm -rf polymaps.js polymaps.min.js