forked from jcubic/jquery.terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 1.71 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
VERSION=0.9.3
COMPRESS=uglifyjs
SED=sed
CP=cp
RM=rm
CAT=cat
DATE=`date -uR`
ALL: js/jquery.terminal-$(VERSION).js js/jquery.terminal-$(VERSION).min.js js/jquery.terminal-min.js css/jquery.terminal-$(VERSION).css css/jquery.terminal.css README.md www/Makefile terminal.jquery.json bower.json package.json
bower.json: bower.in .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" bower.in > bower.json
package.json: package.in .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" package.in > package.json
js/jquery.terminal-$(VERSION).js: js/jquery.terminal-src.js .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" -e "s/{{DATE}}/$(DATE)/g" js/jquery.terminal-src.js > js/jquery.terminal-$(VERSION).js
js/jquery.terminal-$(VERSION).min.js: js/jquery.terminal-$(VERSION).js
$(COMPRESS) -o js/jquery.terminal-$(VERSION).min.js --comments -- js/jquery.terminal-$(VERSION).js
js/jquery.terminal-min.js: js/jquery.terminal-$(VERSION).min.js
$(CP) js/jquery.terminal-$(VERSION).min.js js/jquery.terminal-min.js
css/jquery.terminal-$(VERSION).css: css/jquery.terminal-src.css .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" -e "s/{{DATE}}/$(DATE)/g" css/jquery.terminal-src.css > css/jquery.terminal-$(VERSION).css
css/jquery.terminal.css: css/jquery.terminal-$(VERSION).css .$(VERSION)
cp css/jquery.terminal-$(VERSION).css css/jquery.terminal.css
README.md: README.in .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" < README.in > README.md
.$(VERSION):
touch .$(VERSION)
terminal.jquery.json: manifest .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" manifest > terminal.jquery.json
www/Makefile: www/Makefile.in Makefile
test -d www && $(SED) -e "s/{{VERSION}}/$(VERSION)/g" www/Makefile.in > www/Makefile || true
test:
echo "Need to be impleted"