nvd3/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

JS_FILES = \
src/intro.js \
src/core.js \
src/tooltip.js \
src/utils.js \
src/models/axis.js \
src/models/historicalBar.js \
src/models/bullet.js \
src/models/bulletChart.js \
2012-06-18 02:25:04 +00:00
src/models/cumulativeLineChart.js \
src/models/discreteBar.js \
src/models/discreteBarChart.js \
src/models/distribution.js \
src/models/indentedTree.js \
src/models/legend.js \
src/models/line.js \
src/models/lineChart.js \
2012-06-16 07:12:42 +00:00
src/models/linePlusBarChart.js \
2012-06-18 17:36:12 +00:00
src/models/lineWithFocusChart.js \
src/models/multiBar.js \
src/models/multiBarChart.js \
src/models/multiBarHorizontal.js \
src/models/multiBarHorizontalChart.js \
src/models/multiChart.js \
src/models/ohlcBar.js \
src/models/pie.js \
src/models/pieChart.js \
src/models/scatter.js \
2012-06-15 23:48:03 +00:00
src/models/scatterChart.js \
src/models/scatterPlusLineChart.js \
src/models/sparkline.js \
src/models/sparklinePlus.js \
src/models/stackedArea.js \
src/models/stackedAreaChart.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