Makefile 245 B

1234567891011121314
  1. ALL := scripts.js
  2. .PHONY: all
  3. all: $(ALL)
  4. %.js: %.coffee
  5. coffee --compile --output $(@D) $<
  6. scripts.js: json2.js monitor.js
  7. cat $^ | yui-compressor --type js --output $@
  8. clean:
  9. rm -f $(ALL) $(patsubst %.coffee,%.js,$(wildcard *.coffee))