Skip to content
Newer
Older
100644 205 lines (150 sloc) 4.93 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
d75de86 @isaacs add 'make test-npm'
isaacs authored Dec 16, 2011
45 make test-npm
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
46
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored Aug 2, 2011
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 Aug 1, 2011
49
d02131d @ry Add 'make test-valgrind'
ry authored Dec 22, 2010
50 test-all-valgrind: all
51 python tools/test.py --mode=debug,release --valgrind
52
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
53 test-release: all
6670154 @ry 'make test' only runs the simple test
ry authored Mar 2, 2010
54 python tools/test.py --mode=release
55
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
56 test-debug: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
57 python tools/test.py --mode=debug
58
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
59 test-message: all
125b868 @ry Add message tests
ry authored Jun 19, 2010
60 python tools/test.py message
61
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
62 test-simple: all
04fac19 @arlolra Split tests.
arlolra authored Feb 25, 2010
63 python tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
64
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
65 test-pummel: all
04fac19 @arlolra Split tests.
arlolra authored Feb 25, 2010
66 python tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
67
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
68 test-internet: all
04fac19 @arlolra Split tests.
arlolra authored Feb 25, 2010
69 python tools/test.py internet
70
d75de86 @isaacs add 'make test-npm'
isaacs authored Dec 17, 2011
71 test-npm: all
72 ./node deps/npm/test/run.js
73
74 test-npm-publish: all
75 npm_package_config_publishtest=true ./node deps/npm/test/run.js
15286c8 @ry Start 'make test-uv' command
ry authored Jul 8, 2011
76
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
77 out/Release/node: all
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
78
79 apidoc_sources = $(wildcard doc/api/*.markdown)
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
80 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
81
ae17e2d @ry Fix doc generation for new website
ry authored Dec 14, 2011
82 apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos
2392775 @ry Fix make doc
ry authored Oct 28, 2010
83
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
84 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored Nov 13, 2010
85
90d1e47 @ry make doc improvements
ry authored Nov 15, 2010
86 website_files = \
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
87 out/doc/index.html \
88 out/doc/v0.4_announcement.html \
89 out/doc/cla.html \
90 out/doc/sh_main.js \
91 out/doc/sh_javascript.min.js \
92 out/doc/sh_vim-dark.css \
93 out/doc/logo.png \
94 out/doc/sponsored.png \
ae17e2d @ry Fix doc generation for new website
ry authored Dec 15, 2011
95 out/doc/favicon.ico \
96 out/doc/pipe.css \
97 out/doc/about/index.html \
98 out/doc/close-downloads.png \
99 out/doc/community/index.html \
100 out/doc/community/not-invented-here.png \
101 out/doc/download-logo.png \
102 out/doc/ebay-logo.png \
103 out/doc/footer-logo.png \
104 out/doc/icons.png \
105 out/doc/linkedin-logo.png \
106 out/doc/logos/index.html \
107 out/doc/microsoft-logo.png \
108 out/doc/platform-icons.png \
109 out/doc/ryan-speaker.jpg \
110 out/doc/yahoo-logo.png
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
111
ce3ccc8 @bnoordhuis build: fix circular dependency in doc target
bnoordhuis authored Nov 23, 2011
112 doc docs: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
320e002 @ry fix 'make doc'
ry authored Nov 13, 2010
113
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
114 $(apidoc_dirs):
115 mkdir -p $@
2392775 @ry Fix make doc
ry authored Oct 28, 2010
116
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
117 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
118 cp $< $@
119
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
120 out/doc/%: doc/%
90d1e47 @ry make doc improvements
ry authored Nov 16, 2010
121 cp $< $@
122
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
123 out/doc/api/%.html: doc/api/%.markdown out/Release/node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
124 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
125
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
126 out/doc/%:
2392775 @ry Fix make doc
ry authored Oct 28, 2010
127
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
128 website-upload: doc
ee73132 @ry use rsync instead of scp to upload website
ry authored Dec 15, 2011
129 rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
130
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
131 docopen: out/doc/api/all.html
132 -google-chrome out/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
133
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored Dec 30, 2009
134 docclean:
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
135 -rm -rf out/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored Dec 30, 2009
136
d67fdcc @ry clean should not docclean
ry authored Mar 7, 2010
137 clean:
1dad95a @ry Print 'make clean' commands
ry authored Dec 13, 2010
138 $(WAF) clean
139 -find tools -name "*.pyc" | xargs rm -f
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
140
ff64094 @ry Make 'make distclean' work on solaris
ry authored Apr 19, 2010
141 distclean: docclean
1dad95a @ry Print 'make clean' commands
ry authored Dec 14, 2010
142 -find tools -name "*.pyc" | xargs rm -f
dc39ab3 @ry Improve OSX installer
ry authored Nov 10, 2011
143 -rm -rf dist-osx
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
144 -rm -rf out/ node node_g
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
145
97c9745 @ry Back to WAF
ry authored Nov 1, 2010
146 check:
147 @tools/waf-light check
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
148
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
149 VERSION=v$(shell python tools/getnodeversion.py)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
150 TARNAME=node-$(VERSION)
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
151 TARBALL=$(TARNAME).tar.gz
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored Nov 20, 2011
152 PKG=out/$(TARNAME).pkg
153
154 packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
155
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored Nov 14, 2010
156 #dist: doc/node.1 doc/api
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
157 dist: $(TARBALL) $(PKG)
158
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored Nov 21, 2011
159 PKGDIR=out/dist-osx
160
161 pkg: $(PKG)
162
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
163 $(PKG):
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored Nov 21, 2011
164 -rm -rf $(PKGDIR)
165 $(WAF) configure --prefix=/usr/local
166 DESTDIR=$(PKGDIR) $(WAF) install
167 $(packagemaker) \
168 --id "org.nodejs.NodeJS-$(VERSION)" \
169 --doc tools/osx-pkg.pmdoc \
170 --out $(PKG)
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
171
172 $(TARBALL): out/doc
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored Dec 2, 2010
173 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
174 mkdir -p $(TARNAME)/doc
175 cp doc/node.1 $(TARNAME)/doc/node.1
a7300c8 @ry WAF builds in out/ instead of build/
ry authored Aug 23, 2011
176 cp -r out/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored May 13, 2010
177 rm -rf $(TARNAME)/deps/v8/test # too big
a0198d0 @ry Remove logos from package
ry authored Jul 21, 2011
178 rm -rf $(TARNAME)/doc/logos # too big
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored May 13, 2010
179 tar -cf $(TARNAME).tar $(TARNAME)
180 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored Oct 3, 2009
181 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored Oct 3, 2009
182
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
183 dist-upload: $(TARBALL) $(PKG)
184 ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
185 scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
186 scp $(PKG) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARNAME).pkg
187
ff456b3 @ry Add 'make bench' script
ry authored Oct 13, 2010
188 bench:
189 benchmark/http_simple_bench.sh
190
3cf4827 @ry Add idle connection test
ry authored Oct 15, 2010
191 bench-idle:
192 ./node benchmark/idle_server.js &
193 sleep 1
194 ./node benchmark/idle_clients.js &
195
ac58d3a @ry Import cpplint.py
ry authored Dec 1, 2010
196 jslint:
558e5ba @ry lint util.js and src/node.js
ry authored Dec 2, 2010
197 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
198
ac58d3a @ry Import cpplint.py
ry authored Dec 2, 2010
199 cpplint:
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored Dec 2, 2010
200 @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored Dec 2, 2010
201
202 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored Dec 1, 2010
203
5bc1809 @ry Add 'make dist-upload'
ry authored Nov 11, 2011
204 .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.