forked from CartoDB/odyssey.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 819 Bytes
/
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
VENDOR_FILES= vendor/d3.custom.js vendor/d3.js
ODYSSEY_FILES= \
index.js \
lib/odyssey/core.js \
lib/odyssey/story.js \
lib/odyssey/template.js \
lib/odyssey/actions/*.js \
lib/odyssey/actions/leaflet/*.js \
lib/odyssey/triggers/*.js \
lib/odyssey/util/*.js
ODYSSEY_EDITOR_FILES= editor/*.js
all: dist/odyssey.js dist/editor.js
dist/odyssey.js: $(ODYSSEY_FILES) $(VENDOR_FILES)
node node_modules/browserify/bin/cmd.js -s O index.js > $@
#browserify -s O index.js > $@
dist/editor.js: $(ODYSSEY_EDITOR_FILES) $(VENDOR_FILES)
node node_modules/browserify/bin/cmd.js -s editor editor/editor.js > $@
vendor/d3.custom.js:
node_modules/smash/smash node_modules/d3/src/start.js node_modules/d3/src/event/dispatch.js node_modules/d3/src/core/rebind.js node_modules/d3/src/end.js > $@
clean:
rm -rf dist/*