# http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ CLOSURE = closure-compiler --language_in ECMASCRIPT5 --js $1 --create_source_map $1.map --source_map_format=V3 --js_output_file $1.min YUICOMPRESSOR = yuicompressor HTMLMINIFIER = html-minifier \ --collapse-whitespace \ --remove-attribute-quotes \ --remove-redundant-attributes \ --remove-empty-attributes \ --remove-comments all: min: css-min html-min js-min %.js.min: %.js $(call CLOSURE,$<) JS_FILES = $(shell grep '[.]js$$' manifest.files) js-min: $(JS_FILES:=.min) %.css.min: %.css $(YUICOMPRESSOR) $< > $@ CSS_FILES = $(shell grep '[.]css$$' manifest.files) css-min: $(CSS_FILES:=.min) %.html.min: %.html $(HTMLMINIFIER) $< > $@ HTML_FILES = $(shell grep '[.]html$$' manifest.files) html-min: $(HTML_FILES:=.min) check: html-min css-min js-min dist: ./makedist.sh .PHONY: all clean check css-min dist html-min js-min