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