summaryrefslogtreecommitdiff
path: root/sitestatic/js.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sitestatic/js.mk')
-rw-r--r--sitestatic/js.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/sitestatic/js.mk b/sitestatic/js.mk
new file mode 100644
index 00000000..4c803be6
--- /dev/null
+++ b/sitestatic/js.mk
@@ -0,0 +1,18 @@
+closurecompiler=@compiler() { cp "$$1" "$${1%.js}.min.js"; echo "compiler $$*"; }; compiler
+
+%.min.js: %.js
+ $(closurecompiler) '$<'
+
+.gitignore: FORCE
+ for file in $(gitignore) $(targets); do echo $$file; done | sort > $@
+
+clean: PHONY
+distclean-hook: clean
+distclean: clean distclean-hook
+ rm -f $(targets)
+
+FORCE: PHONY
+PHONY:
+.PHONY: PHONY
+
+.SECONDARY: