public
Description: evented I/O for v8 javascript
Homepage: http://tinyclouds.org/node
Clone URL: git://github.com/ry/node.git
node / Makefile
100644 72 lines (52 sloc) 1.513 kb
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
all:
@tools/waf-light build
 
all-debug:
@tools/waf-light -v build
 
all-progress:
@tools/waf-light -p build
 
install:
@tools/waf-light install
 
uninstall:
@tools/waf-light uninstall
 
test: all
python tools/test.py --mode=release
 
test-all: all
python tools/test.py --mode=debug,release
 
test-debug: all
python tools/test.py --mode=debug
 
benchmark: all
build/default/node benchmark/run.js
 
doc: doc/node.1 doc/api.html doc/index.html
 
doc/api.html: doc/api.txt
asciidoc --unsafe \
-a theme=pipe \
-a toc \
-a linkcss \
-o doc/api.html doc/api.txt
 
doc/api.xml: doc/api.txt
asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
 
doc/node.1: doc/api.xml
xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml
 
website-upload: doc
scp doc/* linode:~/tinyclouds/node/
 
clean:
@-rm -f doc/node.1 doc/api.xml doc/api.html
@tools/waf-light clean
 
distclean: clean
@-rm -rf build/
@-find tools/ -name "*.pyc" -delete
 
check:
@tools/waf-light check
 
VERSION=$(shell git-describe)
TARNAME=node-$(VERSION)
 
dist: doc/node.1 doc/api.html
git-archive --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
mkdir -p $(TARNAME)/doc
cp doc/node.1 $(TARNAME)/doc/node.1
cp doc/api.html $(TARNAME)/doc/api.html
tar rf $(TARNAME).tar \
$(TARNAME)/doc/node.1 \
$(TARNAME)/doc/api.html
rm -r $(TARNAME)
gzip -f -9 $(TARNAME).tar
 
.PHONY: benchmark clean dist distclean check uninstall install all test test-all website-upload