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