/
Makefile
63 lines (52 loc) · 1.28 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
58
59
60
61
62
63
all: install
.PHONY: all
install:
npm install .
./jake dep
.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.
./jake coverage
.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,4d' | \
./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
site: clean html-api html coverage
.PHONY: site
release-dep:
rm -rf dep
node scripts/fetch_deps.js
.PHONY: release-dep
clean:
rm -rf build_docs
.PHONY: clean
maintainer-clean:
npm rm webkit-devtools-agent
rm -rf tools
.PHONY: maintainer-clean