Skip to content
Newer
Older
100644 358 lines (305 sloc) 11 KB
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
1 WAF=python tools/waf-light
90ab079 @ry Use --jobs=1 with WAF
ry authored Dec 6, 2009
2
8af0abd @ry prepare for release - website under new user
ry authored Aug 26, 2011
3 web_root = node@nodejs.org:~/web/nodejs.org/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 15, 2010
4
7ea19d0 @rmustacc Use same make as when originally invoked
rmustacc authored May 19, 2011
5 #
6 # Because we recursively call make from waf we need to make sure that we are
7 # using the correct make. Not all makes are GNU Make, but this likely only
8 # works with gnu make. To deal with this we remember how the user invoked us
9 # via a make builtin variable and use that in all subsequent operations
10 #
11 export NODE_MAKE := $(MAKE)
12
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored Oct 24, 2010
13 all: program
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
14 @-[ -f out/Release/node ] && ls -lh out/Release/node
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
15
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
16 all-progress:
17 @$(WAF) -p build
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
18
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored Oct 24, 2010
19 program:
20 @$(WAF) --product-type=program build
21
22 staticlib:
23 @$(WAF) --product-type=cstaticlib build
24
25 dynamiclib:
26 @$(WAF) --product-type=cshlib build
27
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
28 install:
29 @$(WAF) install
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
30
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
31 uninstall:
32 @$(WAF) uninstall
15594ea @ry Replace WAF with make/autoconf
ry authored Oct 4, 2010
33
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
34 test: all
125b868 @ry Add message tests
ry authored Jun 18, 2010
35 python tools/test.py --mode=release simple message
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
36
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored Aug 2, 2011
37 test-http1: all
38 python tools/test.py --mode=release --use-http1 simple message
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored Aug 1, 2011
39
d02131d @ry Add 'make test-valgrind'
ry authored Dec 22, 2010
40 test-valgrind: all
41 python tools/test.py --mode=release --valgrind simple message
42
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
43 test-all: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
44 python tools/test.py --mode=debug,release
45
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored Aug 2, 2011
46 test-all-http1: all
47 python tools/test.py --mode=debug,release --use-http1
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored Aug 1, 2011
48
d02131d @ry Add 'make test-valgrind'
ry authored Dec 22, 2010
49 test-all-valgrind: all
50 python tools/test.py --mode=debug,release --valgrind
51
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
52 test-release: all
6670154 @ry 'make test' only runs the simple test
ry authored Mar 2, 2010
53 python tools/test.py --mode=release
54
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
55 test-debug: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
56 python tools/test.py --mode=debug
57
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
58 test-message: all
125b868 @ry Add message tests
ry authored Jun 19, 2010
59 python tools/test.py message
60
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
61 test-simple: all
04fac19 @arlolra Split tests.
arlolra authored Feb 25, 2010
62 python tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
63
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
64 test-pummel: all
04fac19 @arlolra Split tests.
arlolra authored Feb 25, 2010
65 python tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
66
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
67 test-internet: all
04fac19 @arlolra Split tests.
arlolra authored Feb 25, 2010
68 python tools/test.py internet
69
2513538 @bnoordhuis test: add dgram tests to test-uv list
bnoordhuis authored Aug 24, 2011
70 UVTEST += simple/test-assert
71 UVTEST += simple/test-buffer
72 UVTEST += simple/test-c-ares
73 UVTEST += simple/test-chdir
74 UVTEST += simple/test-delayed-require
75 UVTEST += simple/test-dgram-pingpong
76 UVTEST += simple/test-dgram-udp4
77 UVTEST += simple/test-eio-race2
78 UVTEST += simple/test-eio-race4
79 UVTEST += simple/test-event-emitter-add-listeners
80 UVTEST += simple/test-event-emitter-modify-in-emit
81 UVTEST += simple/test-event-emitter-num-args
82 UVTEST += simple/test-event-emitter-once
83 UVTEST += simple/test-event-emitter-remove-all-listeners
84 UVTEST += simple/test-event-emitter-remove-listeners
85 UVTEST += simple/test-exception-handler
86 UVTEST += simple/test-exception-handler2
87 UVTEST += simple/test-exception-handler
88 UVTEST += simple/test-executable-path
89 UVTEST += simple/test-file-read-noexist
90 UVTEST += simple/test-file-write-stream
91 UVTEST += simple/test-fs-fsync
92 UVTEST += simple/test-fs-open
93 UVTEST += simple/test-fs-readfile-empty
94 UVTEST += simple/test-fs-read-file-sync
95 UVTEST += simple/test-fs-read-file-sync-hostname
96 UVTEST += simple/test-fs-sir-writes-alot
97 UVTEST += simple/test-fs-write
98 UVTEST += simple/test-fs-write-buffer
99 UVTEST += simple/test-fs-write-file
100 UVTEST += simple/test-fs-write-file-buffer
101 UVTEST += simple/test-fs-write-stream
102 UVTEST += simple/test-fs-write-stream-end
103 UVTEST += simple/test-fs-write-sync
104 UVTEST += simple/test-global
105 UVTEST += simple/test-http
106 UVTEST += simple/test-http-1.0
107 UVTEST += simple/test-http-abort-client
108 UVTEST += simple/test-http-allow-req-after-204-res
109 UVTEST += simple/test-http-blank-header
110 UVTEST += simple/test-http-buffer-sanity
111 UVTEST += simple/test-http-cat
112 UVTEST += simple/test-http-chunked
113 UVTEST += simple/test-http-client-abort
114 UVTEST += simple/test-http-client-parse-error
115 UVTEST += simple/test-http-client-race
116 UVTEST += simple/test-http-client-race-2
117 UVTEST += simple/test-http-client-upload
118 UVTEST += simple/test-http-client-upload-buf
119 UVTEST += simple/test-http-contentLength0
120 UVTEST += simple/test-http-curl-chunk-problem
121 UVTEST += simple/test-http-default-encoding
122 UVTEST += simple/test-http-dns-fail
123 UVTEST += simple/test-http-dns-error
124 UVTEST += simple/test-http-eof-on-connect
125 UVTEST += simple/test-http-exceptions
126 UVTEST += simple/test-http-expect-continue
127 UVTEST += simple/test-http-extra-response
128 UVTEST += simple/test-http-head-request
129 UVTEST += simple/test-http-head-response-has-no-body
130 UVTEST += simple/test-http-keep-alive
131 UVTEST += simple/test-http-keep-alive-close-on-header
132 UVTEST += simple/test-http-malformed-request
133 UVTEST += simple/test-http-many-keep-alive-connections
134 UVTEST += simple/test-http-mutable-headers
135 UVTEST += simple/test-http-parser
136 UVTEST += simple/test-http-proxy
137 UVTEST += simple/test-http-request-end
138 UVTEST += simple/test-http-response-close
139 UVTEST += simple/test-http-response-readable
140 UVTEST += simple/test-http-unix-socket
141 UVTEST += simple/test-http-server
142 UVTEST += simple/test-http-server-multiheaders
143 UVTEST += simple/test-http-set-cookies
144 UVTEST += simple/test-http-set-timeout
145 UVTEST += simple/test-http-set-trailers
146 UVTEST += simple/test-http-upgrade-agent
147 UVTEST += simple/test-http-upgrade-client
148 UVTEST += simple/test-http-upgrade-client2
149 UVTEST += simple/test-http-upgrade-server
150 UVTEST += simple/test-http-upgrade-server2
151 UVTEST += simple/test-http-wget
152 UVTEST += simple/test-http-write-empty-string
153 UVTEST += simple/test-http-wget
154 UVTEST += simple/test-mkdir-rmdir
155 UVTEST += simple/test-net-binary
156 UVTEST += simple/test-net-pingpong
157 UVTEST += simple/test-net-can-reset-timeout
158 UVTEST += simple/test-net-connect-buffer
159 UVTEST += simple/test-net-connect-timeout
160 UVTEST += simple/test-net-create-connection
161 UVTEST += simple/test-net-eaddrinuse
162 UVTEST += simple/test-net-isip
163 UVTEST += simple/test-net-keepalive
164 UVTEST += simple/test-net-pingpong
165 UVTEST += simple/test-net-reconnect
166 UVTEST += simple/test-net-remote-address-port
167 UVTEST += simple/test-net-server-bind
168 UVTEST += simple/test-net-server-max-connections
169 UVTEST += simple/test-net-server-try-ports
170 UVTEST += simple/test-net-stream
171 UVTEST += simple/test-net-socket-timeout
172 UVTEST += simple/test-next-tick
173 UVTEST += simple/test-next-tick-doesnt-hang
174 UVTEST += simple/test-next-tick-errors
175 UVTEST += simple/test-next-tick-ordering
176 UVTEST += simple/test-next-tick-ordering2
177 UVTEST += simple/test-next-tick-starvation
178 UVTEST += simple/test-module-load-list
179 UVTEST += simple/test-path
180 UVTEST += simple/test-pipe-stream
181 UVTEST += simple/test-pipe-file-to-http
182 UVTEST += simple/test-process-env
183 UVTEST += simple/test-pump-file2tcp
184 UVTEST += simple/test-pump-file2tcp-noexist
185 UVTEST += simple/test-punycode
186 UVTEST += simple/test-querystring
187 UVTEST += simple/test-readdir
188 UVTEST += simple/test-readdouble
189 UVTEST += simple/test-readfloat
190 UVTEST += simple/test-readint
191 UVTEST += simple/test-readuint
192 UVTEST += simple/test-regress-GH-746
193 UVTEST += simple/test-regress-GH-819
194 UVTEST += simple/test-regress-GH-897
195 UVTEST += simple/test-regress-GH-1531
196 UVTEST += simple/test-regression-object-prototype
197 UVTEST += simple/test-repl
198 UVTEST += simple/test-require-cache
199 UVTEST += simple/test-require-cache-without-stat
200 UVTEST += simple/test-require-exceptions
201 UVTEST += simple/test-require-resolve
202 UVTEST += simple/test-script-context
203 UVTEST += simple/test-script-new
204 UVTEST += simple/test-script-static-context
205 UVTEST += simple/test-script-static-new
206 UVTEST += simple/test-script-static-this
207 UVTEST += simple/test-script-this
208 UVTEST += simple/test-stream-pipe-cleanup
209 UVTEST += simple/test-stream-pipe-error-handling
210 UVTEST += simple/test-stream-pipe-event
211 UVTEST += simple/test-stream-pipe-multi
212 UVTEST += simple/test-string-decoder
213 UVTEST += simple/test-sys
214 UVTEST += simple/test-tcp-wrap
215 UVTEST += simple/test-tcp-wrap-connect
216 UVTEST += simple/test-tcp-wrap-listen
217 UVTEST += simple/test-timers-linked-list
218 UVTEST += simple/test-tty-stdout-end
219 UVTEST += simple/test-umask
220 UVTEST += simple/test-url
221 UVTEST += simple/test-utf8-scripts
222 UVTEST += simple/test-vm-create-context-circular-reference
223 UVTEST += simple/test-writedouble
224 UVTEST += simple/test-writefloat
225 UVTEST += simple/test-writeint
226 UVTEST += simple/test-writeuint
227 UVTEST += simple/test-zerolengthbufferbug
228 UVTEST += pummel/test-http-client-reconnect-bug
229 UVTEST += pummel/test-http-upload-timeout
230 UVTEST += pummel/test-net-many-clients
231 UVTEST += pummel/test-net-pause
232 UVTEST += pummel/test-net-pingpong-delay
233 UVTEST += pummel/test-net-timeout
234 UVTEST += pummel/test-timers
235 UVTEST += pummel/test-timer-wrap
236 UVTEST += pummel/test-timer-wrap2
237 UVTEST += pummel/test-vm-memleak
238 UVTEST += internet/test-dns
239 UVTEST += simple/test-tls-client-abort
240 UVTEST += simple/test-tls-client-verify
241 UVTEST += simple/test-tls-connect
242 #UVTEST += simple/test-tls-ext-key-usage # broken
243 UVTEST += simple/test-tls-junk-closes-server
244 UVTEST += simple/test-tls-npn-server-client
245 UVTEST += simple/test-tls-request-timeout
246 #UVTEST += simple/test-tls-securepair-client # broken
247 UVTEST += simple/test-tls-securepair-server
248 #UVTEST += simple/test-tls-server-verify # broken
249 UVTEST += simple/test-tls-set-encoding
250
251 # child_process
252 UVTEST += simple/test-child-process-exit-code
253 UVTEST += simple/test-child-process-buffering
254 UVTEST += simple/test-child-process-exec-cwd
255 UVTEST += simple/test-child-process-cwd
256 UVTEST += simple/test-child-process-env
257 UVTEST += simple/test-child-process-stdin
258 UVTEST += simple/test-child-process-ipc
259 UVTEST += simple/test-child-process-deprecated-api
260
261
15286c8 @ry Start 'make test-uv' command
ry authored Jul 8, 2011
262 test-uv: all
06428d8 @ry tools/test.py to support marking files a libuv-broken
ry authored Aug 23, 2011
263 NODE_USE_UV=1 python tools/test.py --libuv simple
f4154d2 @ry Add 'make test-uv-debug'
ry authored Jul 15, 2011
264
265 test-uv-debug: all
06428d8 @ry tools/test.py to support marking files a libuv-broken
ry authored Aug 24, 2011
266 NODE_USE_UV=1 python tools/test.py --mode=debug simple
15286c8 @ry Start 'make test-uv' command
ry authored Jul 8, 2011
267
268
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
269 out/Release/node: all
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
270
271 apidoc_sources = $(wildcard doc/api/*.markdown)
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
272 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
273
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
274 apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
2392775 @ry Fix make doc
ry authored Oct 28, 2010
275
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
276 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored Nov 13, 2010
277
90d1e47 @ry make doc improvements
ry authored Nov 15, 2010
278 website_files = \
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
279 out/doc/index.html \
280 out/doc/v0.4_announcement.html \
281 out/doc/cla.html \
282 out/doc/sh_main.js \
283 out/doc/sh_javascript.min.js \
284 out/doc/sh_vim-dark.css \
285 out/doc/logo.png \
286 out/doc/sponsored.png \
287 out/doc/favicon.ico \
288 out/doc/pipe.css
289
290 doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
320e002 @ry fix 'make doc'
ry authored Nov 13, 2010
291
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
292 $(apidoc_dirs):
293 mkdir -p $@
2392775 @ry Fix make doc
ry authored Oct 28, 2010
294
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
295 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
296 cp $< $@
297
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
298 out/doc/%: doc/%
90d1e47 @ry make doc improvements
ry authored Nov 16, 2010
299 cp $< $@
300
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
301 out/doc/api/%.html: doc/api/%.markdown out/Release/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
302 out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
303
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
304 out/doc/%:
2392775 @ry Fix make doc
ry authored Oct 28, 2010
305
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
306 website-upload: doc
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
307 scp -r out/doc/* $(web_root)
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
308
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
309 docopen: out/doc/api/all.html
310 -google-chrome out/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
311
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored Dec 30, 2009
312 docclean:
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
313 -rm -rf out/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored Dec 30, 2009
314
d67fdcc @ry clean should not docclean
ry authored Mar 7, 2010
315 clean:
1dad95a @ry Print 'make clean' commands
ry authored Dec 13, 2010
316 $(WAF) clean
317 -find tools -name "*.pyc" | xargs rm -f
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
318
ff64094 @ry Make 'make distclean' work on solaris
ry authored Apr 19, 2010
319 distclean: docclean
1dad95a @ry Print 'make clean' commands
ry authored Dec 14, 2010
320 -find tools -name "*.pyc" | xargs rm -f
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
321 -rm -rf out/ node node_g
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
322
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
323 check:
324 @tools/waf-light check
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
325
217b60a @ry sed -i 's/git-/git /g' Makefile
ry authored Feb 17, 2010
326 VERSION=$(shell git describe)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
327 TARNAME=node-$(VERSION)
328
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
329 #dist: doc/node.1 doc/api
330 dist: doc
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored Dec 2, 2010
331 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
332 mkdir -p $(TARNAME)/doc
333 cp doc/node.1 $(TARNAME)/doc/node.1
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
334 cp -r out/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored May 13, 2010
335 rm -rf $(TARNAME)/deps/v8/test # too big
a0198d0 @ry Remove logos from package
ry authored Jul 21, 2011
336 rm -rf $(TARNAME)/doc/logos # too big
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored May 13, 2010
337 tar -cf $(TARNAME).tar $(TARNAME)
338 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
339 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
340
ff456b3 @ry Add 'make bench' script
ry authored Oct 13, 2010
341 bench:
342 benchmark/http_simple_bench.sh
343
3cf4827 @ry Add idle connection test
ry authored Oct 15, 2010
344 bench-idle:
345 ./node benchmark/idle_server.js &
346 sleep 1
347 ./node benchmark/idle_clients.js &
348
ac58d3a @ry Import cpplint.py
ry authored Dec 1, 2010
349 jslint:
558e5ba @ry lint util.js and src/node.js
ry authored Dec 2, 2010
350 PYTHONPATH=tools/closure_linter/ python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ -r test/
3cf4827 @ry Add idle connection test
ry authored Oct 15, 2010
351
ac58d3a @ry Import cpplint.py
ry authored Dec 2, 2010
352 cpplint:
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored Dec 2, 2010
353 @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored Dec 2, 2010
354
355 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored Dec 1, 2010
356
ac58d3a @ry Import cpplint.py
ry authored Dec 2, 2010
357 .PHONY: lint cpplint jslint 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.