-
Notifications
You must be signed in to change notification settings - Fork 3
/
MAKEFILE
52 lines (38 loc) · 802 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
47
48
49
50
51
52
# See the README for installation instructions.
NODE_PATH ?= ./node_modules
JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
JS_TESTER = $(NODE_PATH)/vows/bin/vows
JS_FILES = \
shapely.js
all: \
$(JS_FILES) \
$(JS_FILES:.js=.min.js) \
package.json
.INTERMEDIATE shapely.js: \
src/start.js \
shapely.geom.js \
shapely.ops.js \
src/end.js
shapely.ops.js: \
src/operations/area.js \
src/operations/envelope.js \
src/operations/buffer.js
shapely.geom.js: \
src/geom/geometry.js \
src/geom/point.js \
src/geom/line.js \
src/geom/polygon.js
test: all
@$(JS_TESTER)
%.min.js: %.js Makefile
@rm -f $@
$(JS_COMPILER) < $< > $@
shapely.%: Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
@chmod a-w $@
install:
mkdir -p node_modules
npm install
clean:
rm -f shapely*.js