forked from mbostock/protovis
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
148 lines (137 loc) · 3.38 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
JS_LANG_FILES = \
src/lang/compat.js
JS_CORE_FILES = \
src/pv.js \
src/pv-internals.js \
src/lang/init.js \
src/text/Format.js \
src/text/DateFormat.js \
src/text/TimeFormat.js \
src/text/NumberFormat.js \
src/text/Font.js \
src/data/Arrays.js \
src/data/Numbers.js \
src/data/Objects.js \
src/data/Dom.js \
src/data/Tree.js \
src/data/Nest.js \
src/data/Flatten.js \
src/data/Transform.js \
src/data/Scale.js \
src/data/QuantitativeScale.js \
src/data/LinearScale.js \
src/data/LogScale.js \
src/data/RootScale.js \
src/data/OrdinalScale.js \
src/data/QuantileScale.js \
src/data/Histogram.js \
src/shape/Shape.js \
src/shape/Point.js \
src/shape/Line.js \
src/shape/Polygon.js \
src/shape/Rect.js \
src/shape/Circle.js \
src/shape/Arc.js \
src/shape/Wedge.js \
src/color/Color.js \
src/color/Colors.js \
src/color/FillStyle.js \
src/color/Ramp.js \
src/scene/SvgScene.js \
src/scene/SvgCurve.js \
src/scene/SvgArea.js \
src/scene/SvgBar.js \
src/scene/SvgDot.js \
src/scene/SvgImage.js \
src/scene/SvgLabel.js \
src/scene/SvgLine.js \
src/scene/SvgPanel.js \
src/scene/SvgRule.js \
src/scene/SvgWedge.js \
src/mark/Mark.js \
src/mark/Anchor.js \
src/mark/Area.js \
src/mark/Bar.js \
src/mark/Dot.js \
src/mark/Label.js \
src/mark/Line.js \
src/mark/Rule.js \
src/mark/Panel.js \
src/mark/Image.js \
src/mark/Wedge.js \
src/mark/Ease.js \
src/mark/Transient.js \
src/mark/Transition.js
JS_LAYOUT_FILES = \
src/physics/Particle.js \
src/physics/Simulation.js \
src/physics/Quadtree.js \
src/physics/Force.js \
src/physics/ChargeForce.js \
src/physics/DragForce.js \
src/physics/SpringForce.js \
src/physics/Constraint.js \
src/physics/CollisionConstraint.js \
src/physics/PositionConstraint.js \
src/physics/BoundConstraint.js \
src/layout/Layout.js \
src/layout/Network.js \
src/layout/Hierarchy.js \
src/layout/Grid.js \
src/layout/Stack.js \
src/layout/Band.js \
src/layout/Treemap.js \
src/layout/Tree.js \
src/layout/Indent.js \
src/layout/Pack.js \
src/layout/Force.js \
src/layout/Cluster.js \
src/layout/Partition.js \
src/layout/Arc.js \
src/layout/Horizon.js \
src/layout/Rollup.js \
src/layout/Matrix.js \
src/layout/Bullet.js \
src/behavior/Behavior.js \
src/behavior/DragBase.js \
src/behavior/Drag.js \
src/behavior/Point.js \
src/behavior/Select.js \
src/behavior/Resize.js \
src/behavior/Pan.js \
src/behavior/Zoom.js
JS_GEO_FILES = \
src/geo/Geo.js \
src/geo/LatLng.js \
src/geo/Projection.js \
src/geo/Projections.js \
src/geo/GeoScale.js
JS_FILES = \
$(JS_LANG_FILES) \
$(JS_CORE_FILES) \
$(JS_LAYOUT_FILES) \
$(JS_GEO_FILES)
JS_COMPILER = \
java -jar lib/google-compiler/compiler-20100201.jar \
--charset UTF-8 \
--warning_level=QUIET
JSDOC_HOME = /Library/jsdoc-toolkit
JSDOC = java -jar $(JSDOC_HOME)/jsrun.jar $(JSDOC_HOME)/app/run.js
all: protovis-d3.3.js protovis-r3.3.js
protovis-d3.3.js: $(JS_FILES)
protovis-r3.3.js: $(JS_FILES)
%-d3.3.js: Makefile
rm -f $@
cat license.js >> $@
echo "/*! $(shell git rev-parse HEAD) */" >> $@
cat $(filter %.js,$^) >> $@
%-r3.3.js:: Makefile
rm -f $@
cat license.js >> $@
echo "/*! $(shell git rev-parse --short HEAD) */" >> $@
cat $(filter %.js,$^) | $(JS_COMPILER) >> $@
jsdoc: $(JS_FILES) Makefile
rm -rf jsdoc
$(JSDOC) -a -t=$(JSDOC_HOME)/templates/jsdoc -d=$@ -E="^pv-" $(JS_FILES)
clean:
rm -rf protovis-d3.3.js protovis-r3.3.js jsdoc