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