Skip to content

HTTPS clone URL

Subversion checkout URL

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