-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (43 loc) · 1.1 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
JS_COMPILER = ./node_modules/.bin/uglifyjs
VERSION = v1.0.5
all: geom.min.js geom-tiny.min.js
geom-tiny: geom-tiny.min.js
test:
tests/run
.INTERMEDIATE geom-tiny.js: \
src/point.js \
src/circle.js \
src/polygon.js
.INTERMEDIATE geom.js: \
src/circle.js \
src/matrix.js \
src/point.js \
src/path-data-polyfill.js \
src/polygon.js \
src/polygon-svg.js \
src/convex_decomposition.js \
src/spatial_relation_analyzer.js \
src/vector.js \
src/sparse_vector.js \
src/sparse_matrix.js
geom-tiny.min.js: geom-tiny.js Makefile
@rm -f $@
$(JS_COMPILER) -m --preamble '// Copyright Erik Weitnauer 2017. [$(VERSION)]' < $< > $@
@chmod a-w $@
geom-tiny.js: Makefile
@rm -f $@
@echo '// Copyright Erik Weitnauer 2017. [$(VERSION)]' > $@
cat $(filter %.js,$^) >> $@
@chmod a-w $@
geom.min.js: geom.js Makefile
@rm -f $@
$(JS_COMPILER) -m --preamble '// Copyright Erik Weitnauer 2017. [$(VERSION)]' < $< > $@
@chmod a-w $@
geom.js: Makefile
@rm -f $@
@echo '// Copyright Erik Weitnauer 2017. [$(VERSION)]' > $@
cat $(filter %.js,$^) >> $@
@chmod a-w $@
clean:
rm -f geom*.js
.PHONY: all clean test