-
Notifications
You must be signed in to change notification settings - Fork 79
/
Makefile
57 lines (47 loc) · 1.24 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
46
47
48
49
50
51
52
53
54
55
56
57
all: install
.PHONY: all
install:
npm install .
.PHONY: install
test:
# Problem? Type `make install` first.
npm test
.PHONY: test
spec:
# Problem? Type `make install` first.
./node_modules/.bin/vows --spec test/*.js
.PHONY: spec
coverage:
# Problem? Type `make install` first.
sh scripts/coverage.sh
.PHONY: coverage
html:
# Problem? Type `make install` first.
cat README.md | sed '1,4d' | \
./node_modules/.bin/ronn -5 | \
sed -e 's/<[\/]*html>//g' -e 's/<pre>/<pre class="code">/g' \
> doc/quick-start/index.mustache
cat CONTRIBUTING.md | sed '1,2d' | \
./node_modules/.bin/ronn -5 | \
sed -e 's/<[\/]*html>//g' -e 's/<pre>/<pre class="code">/g' \
> doc/contribute/index.mustache
./node_modules/.bin/selleck
.PHONY: html
html-api:
# Problem? Type `make install` first.
mkdir -p build_docs/api/everything
./node_modules/.bin/yuidoc --project-version `node cli.js -v`
.PHONY: html-api
lint:
# Problem? Type `make install` first.
find lib test -name "*.js" \! -name "*min.js" -print0 | xargs -0 ./go lint
.PHONY: lint
clean:
rm -rf build_docs
.PHONY: clean
publish: clean html-api html coverage
rsync -avz build_docs/ yeti.cx:public/doc/dev/
maintainer-clean:
npm rm webkit-devtools-agent
rm -rf tools
.PHONY: maintainer-clean