This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
120 lines (104 loc) · 3.99 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
# Protovis Makefile
#
# Note: This Makefile depends on the YUI Compressor for JavaScript
# minification. The JAR file should be installed in the lib directory.
# The YUI Compressor is available at http://yuilibrary.com/downloads/
JS_CHART_FILES = \
js/subscriber/chart/Chart.js \
js/subscriber/chart/jqplot/jqplotChart.js \
js/subscriber/chart/jqplot/CreateChart.js \
js/subscriber/chart/protovis/WedgeChart.js \
js/subscriber/chart/protovis/PieChart.js \
js/subscriber/chart/protovis/BarChart.js \
js/subscriber/chart/protovis/ClusteredBarChart.js \
js/subscriber/chart/protovis/ColumnChart.js \
js/subscriber/chart/protovis/ClusteredColumnChart.js \
js/subscriber/chart/protovis/AreaChart.js \
js/subscriber/chart/protovis/AreaChart2.js \
js/subscriber/chart/protovis/LineChart.js \
js/subscriber/chart/protovis/LineChart2.js \
js/subscriber/chart/protovis/Sunburst.js \
js/subscriber/chart/raphael/FunnelChart.js \
js/subscriber/chart/infovis/SpaceTree.js \
js/subscriber/chart/infovis/HyperTree.js \
js/subscriber/chart/jqplot/BarChart.js \
js/subscriber/chart/composite/CompositeChart1.js \
js/subscriber/form/TreeView.js \
js/subscriber/gauge/Gauge.js \
js/subscriber/gauge/raphael/Gauge1.js \
js/subscriber/chart/raphael/DependencyTree.js \
js/subscriber/chart/raphael/PieChart.js \
js/control/TrafficLight.js
JS_DATA_FILES = \
js/provider/Provider.js \
js/provider/ProviderGET.js \
js/provider/ProviderGETJSON.js \
js/provider/ProviderGETMakeRequest.js \
js/subscriber/Subscriber.js
JS_FILTER_FILES = \
js/filter/Filter.js \
js/filter/BasicFilter.js \
js/filter/CallbackFilter.js
JS_FILTERFORM_FILES = \
js/filter/form/Select.js \
js/filter/form/FilterForm.js
JS_UTIL_FILES = \
js/Viskit.js \
js/util/Utils.js \
js/util/Timer.js \
js/control/Tooltip.js
JS_3RD_PARTY_DEBUG_FILES = \
lib/json2.js \
lib/qtip.js \
lib/protovis-r3.2.js \
lib/jquery-1.4.1.min.js \
lib/raphael-min.js \
lib/jit-yc.js \
lib/yui/build/yahoo-dom-event/yahoo-dom-event.js \
lib/yui/build/animation/animation-min.js \
lib/yui/build/calendar/calendar-min.js \
lib/yui/build/treeview/treeview-min.js
JS_3RD_PARTY_MIN_FILES = \
lib/json2.js \
lib/qtip.js \
lib/protovis-r3.2.js \
lib/jquery-1.4.1.min.js \
lib/raphael-min.js \
lib/jit-yc.js \
lib/yui/build/yahoo-dom-event/yahoo-dom-event.js \
lib/yui/build/animation/animation-min.js \
lib/yui/build/calendar/calendar-min.js \
lib/yui/build/treeview/treeview-min.js
JS_CONTROL_FILES = js/control/Control.js \
js/control/Tooltip.js \
js/control/DateRange.js
JS_ADAPTER_FILES = \
js/adapter/Adapter.js
JS_FILES = \
$(JS_UTIL_FILES) \
$(JS_DATA_FILES) \
$(JS_FILTER_FILES) \
$(JS_FILTERFORM_FILES) \
$(JS_CHART_FILES) \
$(JS_ADAPTER_FILES) \
$(JS_CONTROL_FILES)
all: Viskit.js Viskit-min.js
Viskit.js: $(JS_FILES) Makefile
#grep ' ' -Hn $(JS_FILES) && echo "ERROR: tab" && exit 1 || true
#grep '
#' -Hn $(JS_FILES) && echo "ERROR: dos newline" && exit 1 || true
#grep ' $$' -Hn $(JS_FILES) && echo "ERROR: trailing space" && exit 1 || true
cat $(JS_3RD_PARTY_DEBUG_FILES) > $@
cat $(JS_FILES) >> $@
Viskit-min.js: Viskit.js
rm -f $@
cat $(JS_3RD_PARTY_MIN_FILES) > $@
cat $(JS_UTIL_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_DATA_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_FILTER_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_FILTERFORM_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_CHART_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_ADAPTER_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_CONTROL_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
clean:
rm -rf Viskit.js Viskit-min.js