aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d970841ef249b8c765dbc23de644484c9a8079ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
VERSION = 1.0.0

all: dist

distclean:
	rm -f polldance-$(VERSION).js polldance-$(VERSION).min.js

clean:

dist: polldance-$(VERSION).min.js

polldance-$(VERSION).js: polldance.js
	cp polldance.js polldance-$(VERSION).js

polldance-$(VERSION).min.js: polldance-$(VERSION).js
	sed -e "s/DEBUG = true/DEBUG = false/g" polldance-$(VERSION).js | ./compile.py > polldance-$(VERSION).min.js.tmp
	mv polldance-$(VERSION).min.js.tmp polldance-$(VERSION).min.js