forked from ajaxorg/ace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 761 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
34
.PHONY : doc build clean dist
pre_build:
git rev-parse HEAD > .git-ref
mkdir -p build/src
mkdir -p build/demo/kitchen-sink
mkdir -p build/textarea/src
cp -r demo/kitchen-sink/styles.css build/demo/kitchen-sink/styles.css
cp demo/kitchen-sink/logo.png build/demo/kitchen-sink/logo.png
cp -r doc/site/images build/textarea
build: pre_build
./Makefile.dryice.js normal
./Makefile.dryice.js demo
./Makefile.dryice.js bm
doc:
cd doc;\
(test -d node_modules && npm update) || npm install;\
node build.js
clean:
rm -rf build
rm -rf ace-*
rm -f ace-*.tgz
ace.tgz: build
mv build ace-`./version.js`/
cp Readme.md ace-`./version.js`/
cp LICENSE ace-`./version.js`/
tar cvfz ace-`./version.js`.tgz ace-`./version.js`/
dist: clean build ace.tgz