-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
101 lines (92 loc) · 1.93 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# See the README for installation instructions.
NODE_PATH ?= ./node_modules
JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
LOCALE ?= en_US
.PHONY: all test clean install
all: \
vega.js \
vega.min.js
vega.js: \
src/core/_start.js \
src/_package.js \
src/_config.js \
src/core/Bounds.js \
src/core/Gradient.js \
src/canvas/_package.js \
src/canvas/path.js \
src/canvas/marks.js \
src/canvas/Renderer.js \
src/canvas/Handler.js \
src/svg/_package.js \
src/svg/marks.js \
src/svg/Renderer.js \
src/svg/Handler.js \
src/data/_package.js \
src/data/load.js \
src/data/read.js \
src/data/array.js \
src/data/copy.js \
src/data/cross.js \
src/data/facet.js \
src/data/filter.js \
src/data/flatten.js \
src/data/fold.js \
src/data/force.js \
src/data/formula.js \
src/data/geo.js \
src/data/geopath.js \
src/data/link.js \
src/data/pie.js \
src/data/slice.js \
src/data/sort.js \
src/data/stack.js \
src/data/stats.js \
src/data/treemap.js \
src/data/truncate.js \
src/data/unique.js \
src/data/window.js \
src/data/wordcloud.js \
src/data/zip.js \
src/parse/_package.js \
src/parse/axes.js \
src/parse/data.js \
src/parse/dataflow.js \
src/parse/expr.js \
src/parse/legends.js \
src/parse/mark.js \
src/parse/marks.js \
src/parse/padding.js \
src/parse/properties.js \
src/parse/scales.js \
src/parse/spec.js \
src/parse/transform.js \
src/scene/_package.js \
src/scene/Item.js \
src/scene/visit.js \
src/scene/build.js \
src/scene/bounds.js \
src/scene/encode.js \
src/scene/transition.js \
src/scene/axis.js \
src/scene/legend.js \
src/core/Model.js \
src/core/View.js \
src/core/Spec.js \
src/headless/_package.js \
src/headless/View.js \
src/headless/render.js \
src/core/_end.js
%.min.js: %.js Makefile
@rm -f $@
$(JS_COMPILER) < $< > $@
vega.js: Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
@chmod a-w $@
install:
mkdir -p node_modules
npm install
test: all
@npm test
clean:
rm -f vega*.js