1 # http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/
2 CLOSURE
= closure-compiler
--language_in ECMASCRIPT5
--js
$1 --create_source_map
$1.map
--source_map_format
=V3
--js_output_file
$1.min
3 YUICOMPRESSOR
= yuicompressor
4 HTMLMINIFIER
= html-minifier \
5 --collapse-whitespace \
6 --remove-attribute-quotes \
7 --remove-redundant-attributes \
8 --remove-empty-attributes \
13 min
: css-min html-min js-min
18 JS_FILES
= $(shell grep
'[.]js$$' manifest.files
)
19 js-min
: $(JS_FILES
:=.min
)
22 $(YUICOMPRESSOR
) $< > $@
24 CSS_FILES
= $(shell grep
'[.]css$$' manifest.files
)
25 css-min
: $(CSS_FILES
:=.min
)
28 $(HTMLMINIFIER
) $< > $@
30 HTML_FILES
= $(shell grep
'[.]html$$' manifest.files
)
31 html-min
: $(HTML_FILES
:=.min
)
33 check: html-min css-min js-min
38 .PHONY
: all clean check css-min
dist html-min js-min