diff --git a/Makefile b/Makefile index 2e070d0..d9517e0 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ -# Makefile for generating minified files +# Flot Makefile .PHONY: all -# we cheat and process all .js files instead of an exhaustive list +# The default behavior is to minify all our JavaScript files + all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js))) %.min.js: %.js yui-compressor $< -o $@ +# Flot's Travis test suite runs JSHint with the options in .jshintrc + test: - ./node_modules/.bin/jshint *jquery.flot.js + ./node_modules/.bin/jshint jquery.*.js