blob: f946785115f41d62229b82890167b92dfbe849fb [file] [edit]
GENERATED_FILES = \
d3.js \
d3.min.js
all: $(GENERATED_FILES)
.PHONY: clean all
src/start.js: package.json bin/start
bin/start > $@
d3.js: $(shell node_modules/.bin/smash --ignore-missing --list src/d3.js) package.json
@rm -f $@
node_modules/.bin/smash src/d3.js | node_modules/.bin/uglifyjs - -b indent-level=2 -o $@
@chmod a-w $@
d3.min.js: d3.js bin/uglify
@rm -f $@
bin/uglify $< > $@
clean:
rm -f -- $(GENERATED_FILES)