-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
33 lines (26 loc) · 838 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION=$(shell coffee version.coffee)
all: jquery.gcal_flow.js jquery.gcal_flow.css
clean:
rm -f *.js *.css *~ *.zip
%.min.js: %.js
uglifyjs -o $@ $<
%.js: %.coffee
coffee -c $<
%.css: %.scss
if scss $< > $@; then \
true; \
else \
rm -f $@; \
false; \
fi
version: jquery.gcal_flow.js
@echo $(VERSION)
dist: jquery.gcal_flow.js jquery.gcal_flow.min.js jquery.gcal_flow.css
rm -f jquery-gcal-flow-$(VERSION).zip
mkdir -p jquery-gcal-flow-$(VERSION)
install -m 644 README.asciidoc ReleaseNote *.html *.js *.css jquery-gcal-flow-$(VERSION)
git archive --format=tar --prefix=jquery-gcal-flow-$(VERSION)/docs/ \
gh-pages | tar --exclude=.gitignore --exclude=params.json -xf -
zip -9r jquery-gcal-flow-$(VERSION).zip jquery-gcal-flow-$(VERSION)
rm -r jquery-gcal-flow-$(VERSION)
.PHONY: version clean dist