Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 135 lines (93 sloc) 3.015 kb
97c9745 @ry Back to WAF
ry authored
1 WAF=python tools/waf-light
90ab079 @ry Use --jobs=1 with WAF
ry authored
2
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
3 web_root = ryan@nodejs.org:~/web/nodejs.org/
4
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
5 all: program
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
6
97c9745 @ry Back to WAF
ry authored
7 all-progress:
8 @$(WAF) -p build
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
9
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
10 program:
11 @$(WAF) --product-type=program build
12
13 staticlib:
14 @$(WAF) --product-type=cstaticlib build
15
16 dynamiclib:
17 @$(WAF) --product-type=cshlib build
18
97c9745 @ry Back to WAF
ry authored
19 install:
20 @$(WAF) install
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
21
97c9745 @ry Back to WAF
ry authored
22 uninstall:
23 @$(WAF) uninstall
15594ea @ry Replace WAF with make/autoconf
ry authored
24
97c9745 @ry Back to WAF
ry authored
25 test: all
125b868 @ry Add message tests
ry authored
26 python tools/test.py --mode=release simple message
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
27
97c9745 @ry Back to WAF
ry authored
28 test-all: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
29 python tools/test.py --mode=debug,release
30
97c9745 @ry Back to WAF
ry authored
31 test-release: all
6670154 @ry 'make test' only runs the simple test
ry authored
32 python tools/test.py --mode=release
33
97c9745 @ry Back to WAF
ry authored
34 test-debug: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
35 python tools/test.py --mode=debug
36
97c9745 @ry Back to WAF
ry authored
37 test-message: all
125b868 @ry Add message tests
ry authored
38 python tools/test.py message
39
97c9745 @ry Back to WAF
ry authored
40 test-simple: all
04fac19 @arlolra Split tests.
arlolra authored
41 python tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
42
97c9745 @ry Back to WAF
ry authored
43 test-pummel: all
04fac19 @arlolra Split tests.
arlolra authored
44 python tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
45
97c9745 @ry Back to WAF
ry authored
46 test-internet: all
04fac19 @arlolra Split tests.
arlolra authored
47 python tools/test.py internet
48
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
49 build/default/node: all
50
51 apidoc_sources = $(wildcard doc/api/*.markdown)
52 apidocs = $(addprefix build/,$(apidoc_sources:.markdown=.html))
53
54 apidoc_dirs = build/doc build/doc/api/ build/doc/api/assets
2392775 @ry Fix make doc
ry authored
55
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
56 apiassets = $(subst api_assets,api/assets,$(addprefix build/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored
57
90d1e47 @ry make doc improvements
ry authored
58 website_files = \
59 build/doc/index.html \
60 build/doc/cla.html \
61 build/doc/sh_main.js \
62 build/doc/sh_javascript.min.js \
63 build/doc/sh_vim-dark.css \
64 build/doc/logo.png \
65 build/doc/sponsored.png \
66 build/doc/pipe.css
67
68 doc: build/default/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) build/doc/changelog.html
320e002 @ry fix 'make doc'
ry authored
69
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
70 $(apidoc_dirs):
71 mkdir -p $@
2392775 @ry Fix make doc
ry authored
72
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
73 build/doc/api/assets/%: doc/api_assets/% build/doc/api/assets/
74 cp $< $@
75
90d1e47 @ry make doc improvements
ry authored
76 build/doc/%: doc/%
77 cp $< $@
78
8d27393 @miksago Generate Table of Contents at compile time.
miksago authored
79 build/doc/api/%.html: doc/api/%.markdown build/default/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
80 build/default/node tools/doctool/doctool.js doc/template.html $< > $@
81
8d27393 @miksago Generate Table of Contents at compile time.
miksago authored
82 build/doc/changelog.html: ChangeLog build/default/node build/doc/ $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
83 build/default/node tools/doctool/doctool.js doc/template.html $< \
84 | sed 's|assets/|api/assets/|g' \
85 | sed 's|<body>|<body id="changelog">|g' > $@
86 @echo $(apiassets)
87
88
90d1e47 @ry make doc improvements
ry authored
89 build/doc/%:
2392775 @ry Fix make doc
ry authored
90
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
91 website-upload: doc
a01e095 @ry scp should copy the right dir
ry authored
92 scp -r build/doc/* $(web_root)
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
93
94 docopen: build/doc/api/all.html
95 -google-chrome build/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
96
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
97 docclean:
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
98 -rm -rf build/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
99
d67fdcc @ry clean should not docclean
ry authored
100 clean:
97c9745 @ry Back to WAF
ry authored
101 @$(WAF) clean
102 @-find tools -name "*.pyc" | xargs rm -f
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
103
ff64094 @ry Make 'make distclean' work on solaris
ry authored
104 distclean: docclean
97c9745 @ry Back to WAF
ry authored
105 @-find tools -name "*.pyc" | xargs rm -f
106 @-rm -rf build/ node node_g
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
107
97c9745 @ry Back to WAF
ry authored
108 check:
109 @tools/waf-light check
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
110
217b60a @ry sed -i 's/git-/git /g' Makefile
ry authored
111 VERSION=$(shell git describe)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
112 TARNAME=node-$(VERSION)
113
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
114 #dist: doc/node.1 doc/api
115 dist: doc
116 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
117 mkdir -p $(TARNAME)/doc
118 cp doc/node.1 $(TARNAME)/doc/node.1
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
119 cp -r build/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
120 rm -rf $(TARNAME)/deps/v8/test # too big
121 tar -cf $(TARNAME).tar $(TARNAME)
122 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
123 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
124
ff456b3 @ry Add 'make bench' script
ry authored
125 bench:
126 benchmark/http_simple_bench.sh
127
3cf4827 @ry Add idle connection test
ry authored
128 bench-idle:
129 ./node benchmark/idle_server.js &
130 sleep 1
131 ./node benchmark/idle_clients.js &
132
133
90d1e47 @ry make doc improvements
ry authored
134 .PHONY: bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
Something went wrong with that request. Please try again.