]> git.wh0rd.org - chrome-ext/music-player-client.git/blobdiff - Makefile
compile javascript files with the closure compiler
[chrome-ext/music-player-client.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..70ee24a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CLOSURE = closure-compiler --language_in ECMASCRIPT5
+
+all:
+
+%.js.min: %.js
+       $(CLOSURE) $< > $@
+
+JS_FILES = $(shell grep '[.]js$$' manifest.files)
+js-min: $(JS_FILES:=.min)
+
+check: js-min
+
+.PHONY: all clean check js-min