X-Git-Url: https://git.wh0rd.org/?p=chrome-ext%2Fweb-power-switch.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=5e8804718f2a4b3f8c0a036ace8699620c29083e;hp=70ee24a9d3f2f18388b81d5d81e8c4c4e02f9b56;hb=9a46592dc6de6c201ecc8df284e40f779bd22274;hpb=5268e625c576d5a92915e8eb32c587fbc9cab673 diff --git a/Makefile b/Makefile index 70ee24a..5e88047 100644 --- 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