]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/blobdiff - Makefile
add files to help with making dists
[chrome-ext/clearhistory-advance-fork.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..5e88047
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+CLOSURE = closure-compiler --language_in ECMASCRIPT5
+YUICOMPRESSOR = yuicompressor
+
+all:
+
+%.js.min: %.js
+       $(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)
+
+check: css-min js-min
+
+dist:
+       ./makedist.sh
+
+.PHONY: all clean check css-min dist js-min