summaryrefslogtreecommitdiff
path: root/sitestatic/js.mk
blob: abee075bbe60a1efe354596fd2b8224a70e943d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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