forked from simplegeo/polymaps
/
Makefile
42 lines (37 loc) · 769 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
JS_FILES = \
src/start.js \
src/Id.js \
src/Svg.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/Interact.js \
src/Compass.js \
src/Grid.js \
src/end.js
JS_COMPILER ?= \
java -jar /Library/Google/Compiler/compiler-20100201.jar \
--charset UTF-8
all: polymaps.min.js polymaps.js
polymaps.min.js: polymaps.js
rm -f $@
echo "// $(shell git rev-parse --short HEAD)" >> $@
$(JS_COMPILER) < polymaps.js >> $@
chmod a-w $@
polymaps.js: $(JS_FILES) Makefile
rm -f $@
echo "// $(shell git rev-parse HEAD)" >> $@
cat $(JS_FILES) >> $@
chmod a-w $@
clean:
rm polymaps.js polymaps.min.js