Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (54 sloc) 1.528 kb
90ab079 ry Use --jobs=1 with WAF
ry authored
1 WAF=python tools/waf-light --jobs=1
2
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
3 all:
90ab079 ry Use --jobs=1 with WAF
ry authored
4 @$(WAF) build
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
5
6 all-debug:
90ab079 ry Use --jobs=1 with WAF
ry authored
7 @$(WAF) -v build
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
8
9 all-progress:
90ab079 ry Use --jobs=1 with WAF
ry authored
10 @$(WAF) -p build
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
11
12 install:
90ab079 ry Use --jobs=1 with WAF
ry authored
13 @$(WAF) install
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
14
15 uninstall:
90ab079 ry Use --jobs=1 with WAF
ry authored
16 @$(WAF) uninstall
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
17
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
18 test: all
19 python tools/test.py --mode=release
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
20
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
21 test-all: all
22 python tools/test.py --mode=debug,release
23
24 test-debug: all
25 python tools/test.py --mode=debug
26
27 benchmark: all
28 build/default/node benchmark/run.js
29
30 doc: doc/node.1 doc/api.html doc/index.html
31
32 doc/api.html: doc/api.txt
33 asciidoc --unsafe \
34 -a theme=pipe \
35 -a toc \
36 -a linkcss \
37 -o doc/api.html doc/api.txt
38
39 doc/api.xml: doc/api.txt
40 asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
41
42 doc/node.1: doc/api.xml
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
43 xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
44
45 website-upload: doc
46 scp doc/* linode:~/tinyclouds/node/
47
2c016ba ry 'make distclean' should not call 'waf clean'
ry authored
48 docclean:
be2ca1e ry Fix build.
ry authored
49 @-rm -f doc/node.1 doc/api.xml doc/api.html
2c016ba ry 'make distclean' should not call 'waf clean'
ry authored
50
51 clean: docclean
90ab079 ry Use --jobs=1 with WAF
ry authored
52 @$(WAF) clean
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
53
2c016ba ry 'make distclean' should not call 'waf clean'
ry authored
54 distclean: docclean
ae6a172 ry Simplify 'make distclean' by just doing 'rm -rf build'
ry authored
55 @-rm -rf build/
e982349 ry Fix 'make distclean'
ry authored
56 @-find tools/ -name "*.pyc" -delete
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
57
58 check:
59 @tools/waf-light check
60
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
61 VERSION=$(shell git-describe)
62 TARNAME=node-$(VERSION)
63
64 dist: doc/node.1 doc/api.html
65 git-archive --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
66 mkdir -p $(TARNAME)/doc
67 cp doc/node.1 $(TARNAME)/doc/node.1
68 cp doc/api.html $(TARNAME)/doc/api.html
69 tar rf $(TARNAME).tar \
70 $(TARNAME)/doc/node.1 \
71 $(TARNAME)/doc/api.html
72 rm -r $(TARNAME)
73 gzip -f -9 $(TARNAME).tar
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
74
2c016ba ry 'make distclean' should not call 'waf clean'
ry authored
75 .PHONY: benchmark clean docclean dist distclean check uninstall install all test test-all website-upload
Something went wrong with that request. Please try again.