1 # Makefile for generating minified files 2 3 .PHONY: all 4 5 # we cheat and process all .js files instead of an exhaustive list 6 all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js))) 7 8 %.min.js: %.js 9 yui-compressor $< -o $@ 10 11 test: 12 ./node_modules/.bin/jshint *jquery.flot.js 13