Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 177 lines (124 sloc) 4.156 kb
97c9745 ry Back to WAF
ry authored
1 WAF=python tools/waf-light
90ab079 ry Use --jobs=1 with WAF
ry authored
2
8af0abd ry prepare for release - website under new user
ry authored
3 web_root = node@nodejs.org:~/web/nodejs.org/
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
4
7ea19d0 Robert Mustacchi 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 Rasmus Added support for cross compilation and also fixed DEST_CPU to represent...
rsms authored
13 all: program
a7300c8 ry WAF builds in out/ instead of build/
ry authored
14 @-[ -f out/Release/node ] && ls -lh out/Release/node
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
15
97c9745 ry Back to WAF
ry authored
16 all-progress:
17 @$(WAF) -p build
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
18
e5a0fbe Rasmus Added support for cross compilation and also fixed DEST_CPU to represent...
rsms authored
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
28 install:
29 @$(WAF) install
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
30
97c9745 ry Back to WAF
ry authored
31 uninstall:
32 @$(WAF) uninstall
15594ea ry Replace WAF with make/autoconf
ry authored
33
97c9745 ry Back to WAF
ry authored
34 test: all
125b868 ry Add message tests
ry authored
35 python tools/test.py --mode=release simple message
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
36
38f948a Ben Noordhuis http: make http2 the default, legacy backend is available with --use-htt...
bnoordhuis authored
37 test-http1: all
38 python tools/test.py --mode=release --use-http1 simple message
e1bb241 Ben Noordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
39
d02131d ry Add 'make test-valgrind'
ry authored
40 test-valgrind: all
41 python tools/test.py --mode=release --valgrind simple message
42
97c9745 ry Back to WAF
ry authored
43 test-all: all
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
44 python tools/test.py --mode=debug,release
45
38f948a Ben Noordhuis http: make http2 the default, legacy backend is available with --use-htt...
bnoordhuis authored
46 test-all-http1: all
47 python tools/test.py --mode=debug,release --use-http1
e1bb241 Ben Noordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
48
d02131d ry Add 'make test-valgrind'
ry authored
49 test-all-valgrind: all
50 python tools/test.py --mode=debug,release --valgrind
51
97c9745 ry Back to WAF
ry authored
52 test-release: all
6670154 ry 'make test' only runs the simple test
ry authored
53 python tools/test.py --mode=release
54
97c9745 ry Back to WAF
ry authored
55 test-debug: all
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
56 python tools/test.py --mode=debug
57
97c9745 ry Back to WAF
ry authored
58 test-message: all
125b868 ry Add message tests
ry authored
59 python tools/test.py message
60
97c9745 ry Back to WAF
ry authored
61 test-simple: all
04fac19 Arlo Breault Split tests.
arlolra authored
62 python tools/test.py simple
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
63
97c9745 ry Back to WAF
ry authored
64 test-pummel: all
04fac19 Arlo Breault Split tests.
arlolra authored
65 python tools/test.py pummel
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
66
97c9745 ry Back to WAF
ry authored
67 test-internet: all
04fac19 Arlo Breault Split tests.
arlolra authored
68 python tools/test.py internet
69
15286c8 ry Start 'make test-uv' command
ry authored
70
a7300c8 ry WAF builds in out/ instead of build/
ry authored
71 out/Release/node: all
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
72
73 apidoc_sources = $(wildcard doc/api/*.markdown)
a7300c8 ry WAF builds in out/ instead of build/
ry authored
74 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
75
a7300c8 ry WAF builds in out/ instead of build/
ry authored
76 apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
2392775 ry Fix make doc
ry authored
77
a7300c8 ry WAF builds in out/ instead of build/
ry authored
78 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 ry fix 'make doc'
ry authored
79
90d1e47 ry make doc improvements
ry authored
80 website_files = \
a7300c8 ry WAF builds in out/ instead of build/
ry authored
81 out/doc/index.html \
82 out/doc/v0.4_announcement.html \
83 out/doc/cla.html \
84 out/doc/sh_main.js \
85 out/doc/sh_javascript.min.js \
86 out/doc/sh_vim-dark.css \
87 out/doc/logo.png \
88 out/doc/sponsored.png \
89 out/doc/favicon.ico \
90 out/doc/pipe.css
91
5bc1809 ry Add 'make dist-upload'
ry authored
92 doc: doc
93
94 out/doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
95
320e002 ry fix 'make doc'
ry authored
96
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
97 $(apidoc_dirs):
98 mkdir -p $@
2392775 ry Fix make doc
ry authored
99
a7300c8 ry WAF builds in out/ instead of build/
ry authored
100 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
101 cp $< $@
102
a7300c8 ry WAF builds in out/ instead of build/
ry authored
103 out/doc/%: doc/%
90d1e47 ry make doc improvements
ry authored
104 cp $< $@
105
a7300c8 ry WAF builds in out/ instead of build/
ry authored
106 out/doc/api/%.html: doc/api/%.markdown out/Release/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
107 out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
108
a7300c8 ry WAF builds in out/ instead of build/
ry authored
109 out/doc/%:
2392775 ry Fix make doc
ry authored
110
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
111 website-upload: doc
a7300c8 ry WAF builds in out/ instead of build/
ry authored
112 scp -r out/doc/* $(web_root)
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
113
a7300c8 ry WAF builds in out/ instead of build/
ry authored
114 docopen: out/doc/api/all.html
115 -google-chrome out/doc/api/all.html
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
116
2c016ba ry 'make distclean' should not call 'waf clean'
ry authored
117 docclean:
a7300c8 ry WAF builds in out/ instead of build/
ry authored
118 -rm -rf out/doc
2c016ba ry 'make distclean' should not call 'waf clean'
ry authored
119
d67fdcc ry clean should not docclean
ry authored
120 clean:
1dad95a ry Print 'make clean' commands
ry authored
121 $(WAF) clean
122 -find tools -name "*.pyc" | xargs rm -f
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
123
ff64094 ry Make 'make distclean' work on solaris
ry authored
124 distclean: docclean
1dad95a ry Print 'make clean' commands
ry authored
125 -find tools -name "*.pyc" | xargs rm -f
dc39ab3 ry Improve OSX installer
ry authored
126 -rm -rf dist-osx
a7300c8 ry WAF builds in out/ instead of build/
ry authored
127 -rm -rf out/ node node_g
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
128
97c9745 ry Back to WAF
ry authored
129 check:
130 @tools/waf-light check
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
131
5bc1809 ry Add 'make dist-upload'
ry authored
132 VERSION=v$(shell python tools/getnodeversion.py)
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
133 TARNAME=node-$(VERSION)
5bc1809 ry Add 'make dist-upload'
ry authored
134 TARBALL=$(TARNAME).tar.gz
135 PKG=dist-osx/$(TARNAME).pkg
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
136
ade8cf9 Micheil Smith Build API page into build/doc; simplify doctool.
miksago authored
137 #dist: doc/node.1 doc/api
5bc1809 ry Add 'make dist-upload'
ry authored
138 dist: $(TARBALL) $(PKG)
139
140 $(PKG):
141 -rm -rf dist-osx
142 tools/osx-dist.sh
143
144 $(TARBALL): out/doc
a1138c6 Micheil Smith Cleanup Makefile for JSLint, CPPLint
miksago authored
145 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
146 mkdir -p $(TARNAME)/doc
147 cp doc/node.1 $(TARNAME)/doc/node.1
a7300c8 ry WAF builds in out/ instead of build/
ry authored
148 cp -r out/doc/api $(TARNAME)/doc/api
ce2d5ad ry Change the 'make dist' to remove v8 test dir
ry authored
149 rm -rf $(TARNAME)/deps/v8/test # too big
a0198d0 ry Remove logos from package
ry authored
150 rm -rf $(TARNAME)/doc/logos # too big
ce2d5ad ry Change the 'make dist' to remove v8 test dir
ry authored
151 tar -cf $(TARNAME).tar $(TARNAME)
152 rm -rf $(TARNAME)
bf0d278 ry Improve "make dist" remove generated doc from repo.
ry authored
153 gzip -f -9 $(TARNAME).tar
861f28f ry Don't unnecessarily output the makefile from the configure script.
ry authored
154
5bc1809 ry Add 'make dist-upload'
ry authored
155 dist-upload: $(TARBALL) $(PKG)
156 ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
157 scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
158 scp $(PKG) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARNAME).pkg
159
ff456b3 ry Add 'make bench' script
ry authored
160 bench:
161 benchmark/http_simple_bench.sh
162
3cf4827 ry Add idle connection test
ry authored
163 bench-idle:
164 ./node benchmark/idle_server.js &
165 sleep 1
166 ./node benchmark/idle_clients.js &
167
ac58d3a ry Import cpplint.py
ry authored
168 jslint:
558e5ba ry lint util.js and src/node.js
ry authored
169 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
170
ac58d3a ry Import cpplint.py
ry authored
171 cpplint:
a1138c6 Micheil Smith Cleanup Makefile for JSLint, CPPLint
miksago authored
172 @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a ry Import cpplint.py
ry authored
173
174 lint: jslint cpplint
a128451 ry Import Google's closure_linter
ry authored
175
5bc1809 ry Add 'make dist-upload'
ry authored
176 .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean dist-upload check uninstall install all program staticlib dynamiclib test test-all website-upload
Something went wrong with that request. Please try again.