summaryrefslogtreecommitdiff
path: root/sitestatic/js.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sitestatic/js.mk')
-rw-r--r--sitestatic/js.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/sitestatic/js.mk b/sitestatic/js.mk
new file mode 100644
index 00000000..7a8783ce
--- /dev/null
+++ b/sitestatic/js.mk
@@ -0,0 +1,4 @@
+closurecompiler=compiler() { cp "$$1" "$${1%.js}.min.js"; }; compiler
+
+%.min.js: %.js
+ $(closurecompiler) '$<'