forked from jcubic/jquery.terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
72 lines (51 loc) · 2.8 KB
/
Makefile.in
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
VERSION={{VERSION}}
COMPRESS=uglifyjs
SED=sed
CP=cp
RM=rm
CAT=cat
DATE=`date -uR`
ALL: Makefile .$(VERSION) js/jquery.terminal-$(VERSION).js js/jquery.terminal.js js/jquery.terminal-$(VERSION).min.js js/jquery.terminal.min.js css/jquery.terminal-$(VERSION).css css/jquery.terminal-$(VERSION).min.css css/jquery.terminal.min.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.js: js/jquery.terminal-$(VERSION).js
$(CP) js/jquery.terminal-$(VERSION).js js/jquery.terminal.js
js/jquery.terminal-$(VERSION).min.js: js/jquery.terminal-$(VERSION).js
$(COMPRESS) -o js/jquery.terminal-$(VERSION).min.js --comments --mangle -- 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
css/jquery.terminal.min.css: css/jquery.terminal-$(VERSION).min.css
$(CP) css/jquery.terminal-$(VERSION).min.css css/jquery.terminal.min.css
css/jquery.terminal-$(VERSION).min.css: css/jquery.terminal-$(VERSION).css
java -jar bin/yuicompressor-2.4.8.jar css/jquery.terminal-$(VERSION).css -o css/jquery.terminal-$(VERSION).min.css
sed -i -e 's/0,100%/0%,100%/g' css/jquery.terminal-$(VERSION).min.css
README.md: README.in .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" < README.in > README.md
.$(VERSION): Makefile
touch .$(VERSION)
Makefile: Makefile.in
sed -e "s/{{VER""SION}}/"$(VERSION)"/" Makefile.in > Makefile
terminal.jquery.json: manifest .$(VERSION)
$(SED) -e "s/{{VER}}/$(VERSION)/g" manifest > terminal.jquery.json
www/Makefile: $(wildcard www/Makefile.in) Makefile .$(VERSION)
test -d www && $(SED) -e "s/{{VER""SION}}/$(VERSION)/g" www/Makefile.in > www/Makefile || true
test:
node_modules/jasmine-node/bin/jasmine-node --captureExceptions --verbose --junitreport --color --forceexit spec
cover:
node_modules/istanbul/lib/cli.js cover node_modules/jasmine/bin/jasmine.js
jshint:
jshint js/jquery.terminal-src.js
jshint js/dterm.js
jshint js/xml_formatting.js
jshint js/unix_formatting.js
jshint spec/terminalSpec.js
install:
npm install