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