nvd3/Makefile

36 lines
620 B
Makefile

JS_FILES = \
src/nvtooltip.js \
src/intro.js \
src/core.js \
src/models/legend.js \
src/models/xaxis.js \
src/models/yaxis.js \
src/models/bar.js \
src/models/line.js \
src/models/lineWithFocus.js \
src/models/lineWithLegend.js \
src/models/scatter.js \
src/models/scatterWithLegend.js \
src/models/sparkline.js \
src/outro.js
JS_COMPILER = \
uglifyjs
all: nv.d3.js nv.d3.min.js
nv.d3.js: $(JS_FILES)
nv.d3.min.js: $(JS_FILES)
nv.d3.js: Makefile
rm -f $@
cat $(filter %.js,$^) >> $@
%.min.js:: Makefile
rm -f $@
cat $(filter %.js,$^) | $(JS_COMPILER) >> $@
clean:
rm -rf nv.d3.js nv.d3.min.js