Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (39 sloc) 0.848 kb
JS_TESTER = ./node_modules/vows/bin/vows
JS_UGLIFY = ./node_modules/uglify-js/bin/uglifyjs
.PHONY: test benchmark
all: crossfilter.min.js package.json
crossfilter.js: \
src/version.js \
src/identity.js \
src/permute.js \
src/bisect.js \
src/heap.js \
src/heapselect.js \
src/insertionsort.js \
src/quicksort.js \
src/array.js \
src/filter.js \
src/null.js \
src/zero.js \
src/reduce.js \
src/crossfilter.js \
Makefile
%.min.js: %.js Makefile
@rm -f $@
$(JS_UGLIFY) $< -c -m -o $@
%.js:
@rm -f $@
@echo '(function(exports){' > $@
cat $(filter %.js,$^) >> $@
@echo '})(this);' >> $@
@chmod a-w $@
package.json: crossfilter.js src/package.js
@rm -f $@
node src/package.js > $@
@chmod a-w $@
clean:
rm -f crossfilter.js crossfilter.min.js package.json
test: all
@$(JS_TESTER)
benchmark: all
@node test/benchmark.js
Jump to Line
Something went wrong with that request. Please try again.