-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
121 lines (103 loc) · 2.84 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
all: \
dist/cwm.css \
dist/cwm.min.css \
dist/cwm.js \
dist/cwm.min.js
dist/cwm.js: \
js/lib/d3.v3.js \
js/lib/lodash.modern-2.4.1.js \
js/lib/requestAnimationFrame.js \
js/lib/modestmaps.js \
js/lib/waxconnector.js \
js/lib/easey.js \
js/lib/d3.dimensions.js \
js/lib/d3.keybinding.js \
js/lib/topojson.js \
js/src/cwm.js \
js/src/map.js \
js/src/stories.js \
js/src/mission_control.js \
js/src/render.js \
js/src/templates.js \
js/src/util.js \
js/src/util/MM.overrides.js \
js/src/core/base.js \
js/src/core/place.js \
js/src/core/collection.js \
js/src/core/flightplan.js \
js/src/ui/navigation.js \
js/src/views.js \
js/src/ui/markers.js \
js/src/ui/popup.js \
js/src/ui/overlay.js \
js/src/layers.js \
js/src/layers/bing_layer.js \
js/src/layers/mapbox_layer.js \
js/src/layers/feature_layer.js \
js/src/layers/marker_layer.js \
js/src/handlers.js \
js/src/handlers/drag_handler.js \
dist/cwm.js: node_modules/.install Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
dist/cwm.min.js: dist/cwm.js Makefile
@rm -f $@
node_modules/.bin/uglifyjs $< -c -m -o $@
dist/cwm.css: \
css/data_uris.css \
css/map.css \
css/nav.css \
css/images.css \
css/stories.css \
css/markers.css \
css/features.css \
css/animation.css \
css/overlay.css
dist/cwm.css: Makefile
@rm -f $@
cat $(filter %.css,$^) > $@
dist/cwm.min.css: dist/cwm.css Makefile
@rm -f $@
node_modules/.bin/cleancss -o $@ $<
node_modules/.install: package.json
npm install && touch node_modules/.install
clean:
rm -f dist/cwm*.js dist/cwm.css
lib: \
js/lib/d3.v3.js \
js/lib/modestmaps.js \
js/lib/waxconnector.js \
js/lib/easey.js \
js/lib/lodash.modern-2.4.1.js \
js/lib/jquery-1.8.3.js
js/lib/lodash.modern-2.4.1.js:
curl https://raw.github.com/lodash/lodash/2.4.1/dist/lodash.js -o $@
js/lib/jquery-1.8.3.js:
curl http://code.jquery.com/jquery-1.8.3.js -o $@
js/lib/modestmaps.js: node_modules/.install
@rm -f $@
cp node_modules/modestmaps/modestmaps.js $@
js/lib/waxconnector.js: node_modules/.install
@rm -f $@
cp node_modules/wax/connectors/mm/waxconnector.js $@
js/lib/easey.js: node_modules/.install
@rm -f $@
cp node_modules/easey/src/easey.js $@
D3_FILES = \
node_modules/d3/src/start.js \
node_modules/d3/src/arrays/index.js \
node_modules/d3/src/behavior/behavior.js \
node_modules/d3/src/behavior/drag.js \
node_modules/d3/src/core/index.js \
node_modules/d3/src/event/index.js \
node_modules/d3/src/time/index.js \
node_modules/d3/src/geo/path.js \
node_modules/d3/src/geo/stream.js \
node_modules/d3/src/selection/index.js \
node_modules/d3/src/transition/index.js \
node_modules/d3/src/xhr/index.js \
node_modules/d3/src/dsv/index.js \
node_modules/d3/src/end.js
js/lib/d3.v3.js: $(D3_FILES)
node_modules/.bin/smash $(D3_FILES) > $@
@echo 'd3 rebuilt. Please reapply 7e2485d, 4da529f, and 223974d'