]> git.wh0rd.org - chrome-ext/web-power-switch.git/blobdiff - Makefile
support minifying css files too
[chrome-ext/web-power-switch.git] / Makefile
index 70ee24a9d3f2f18388b81d5d81e8c4c4e02f9b56..5e8804718f2a4b3f8c0a036ace8699620c29083e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 CLOSURE = closure-compiler --language_in ECMASCRIPT5
+YUICOMPRESSOR = yuicompressor
 
 all:
 
@@ -8,6 +9,15 @@ all:
 JS_FILES = $(shell grep '[.]js$$' manifest.files)
 js-min: $(JS_FILES:=.min)
 
-check: js-min
+%.css.min: %.css
+       $(YUICOMPRESSOR) $< > $@
 
-.PHONY: all clean check js-min
+CSS_FILES = $(shell grep '[.]css$$' manifest.files)
+css-min: $(CSS_FILES:=.min)
+
+check: css-min js-min
+
+dist:
+       ./makedist.sh
+
+.PHONY: all clean check css-min dist js-min