Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 201 lines (148 sloc) 5.147 kB
e493b29 @bnoordhuis build: respect --debug configure switch
bnoordhuis authored
1 -include config.mk
2
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
3 BUILDTYPE ?= Release
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
4 PYTHON ?= python
90ab079 @ry Use --jobs=1 with WAF
ry authored
5
10d92b3 @ry saner targets
ry authored
6 ifeq ($(BUILDTYPE),Release)
7 all: out/Makefile node
8 else
9 all: out/Makefile node_g
10 endif
11
bb8f734 @ry Fix make targets so they detect changes
ry authored
12 # The .PHONY is needed to ensure that we recursively use the out/Makefile
13 # to check for changes.
14 .PHONY: node node_g
10d92b3 @ry saner targets
ry authored
15
21dd53f @ry Makefile: Don't force user to run ./configure first
ry authored
16 node: config.gypi
10d92b3 @ry saner targets
ry authored
17 $(MAKE) -C out BUILDTYPE=Release
bb8f734 @ry Fix make targets so they detect changes
ry authored
18 ln -fs out/Release/node node
10d92b3 @ry saner targets
ry authored
19
21dd53f @ry Makefile: Don't force user to run ./configure first
ry authored
20 node_g: config.gypi
bb8f734 @ry Fix make targets so they detect changes
ry authored
21 $(MAKE) -C out BUILDTYPE=Debug
22 ln -fs out/Debug/node node_g
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
23
21dd53f @ry Makefile: Don't force user to run ./configure first
ry authored
24 config.gypi: configure
25 ./configure
26
10d92b3 @ry saner targets
ry authored
27 out/Debug/node:
28 $(MAKE) -C out BUILDTYPE=Debug
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
29
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
30 out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
eda1538 build: regenerate out/Makefile from within the main Makefile
eddy_me08@yahoo.com authored
31 tools/gyp_node -f make
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
32
be23c51 @indutny Implement make install
indutny authored
33 install: all
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
34 out/Release/node tools/installer.js ./config.gypi install
be23c51 @indutny Implement make install
indutny authored
35
36 uninstall:
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
37 out/Release/node tools/installer.js ./config.gypi uninstall
1db9a2a @bnoordhuis build: print "not yet implemented" warning on `make install`
bnoordhuis authored
38
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
39 clean:
10d92b3 @ry saner targets
ry authored
40 -rm -rf out/Makefile node node_g out/**/*.o out/**/*.a out/$(BUILDTYPE)/node
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
41
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
42 distclean:
48d21dd @ry Force makefile generation in gyp
ry authored
43 -rm -rf out
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
44 -rm config.gypi
15594ea @ry Replace WAF with make/autoconf
ry authored
45
97c9745 @ry Back to WAF
ry authored
46 test: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
47 $(PYTHON) tools/test.py --mode=release simple message
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
48
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored
49 test-http1: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
50 $(PYTHON) tools/test.py --mode=release --use-http1 simple message
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
51
d02131d @ry Add 'make test-valgrind'
ry authored
52 test-valgrind: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
53 $(PYTHON) tools/test.py --mode=release --valgrind simple message
d02131d @ry Add 'make test-valgrind'
ry authored
54
97c9745 @ry Back to WAF
ry authored
55 test-all: all
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
56 python tools/test.py --mode=debug,release
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
57 $(MAKE) test-npm
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
58
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored
59 test-all-http1: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
60 $(PYTHON) tools/test.py --mode=debug,release --use-http1
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
61
d02131d @ry Add 'make test-valgrind'
ry authored
62 test-all-valgrind: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
63 $(PYTHON) tools/test.py --mode=debug,release --valgrind
d02131d @ry Add 'make test-valgrind'
ry authored
64
97c9745 @ry Back to WAF
ry authored
65 test-release: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
66 $(PYTHON) tools/test.py --mode=release
6670154 @ry 'make test' only runs the simple test
ry authored
67
97c9745 @ry Back to WAF
ry authored
68 test-debug: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
69 $(PYTHON) tools/test.py --mode=debug
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
70
97c9745 @ry Back to WAF
ry authored
71 test-message: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
72 $(PYTHON) tools/test.py message
125b868 @ry Add message tests
ry authored
73
97c9745 @ry Back to WAF
ry authored
74 test-simple: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
75 $(PYTHON) tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
76
97c9745 @ry Back to WAF
ry authored
77 test-pummel: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
78 $(PYTHON) tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
79
97c9745 @ry Back to WAF
ry authored
80 test-internet: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
81 $(PYTHON) tools/test.py internet
04fac19 @arlolra Split tests.
arlolra authored
82
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
83 test-npm: node
d75de86 @isaacs add 'make test-npm'
isaacs authored
84 ./node deps/npm/test/run.js
85
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
86 test-npm-publish: node
d75de86 @isaacs add 'make test-npm'
isaacs authored
87 npm_package_config_publishtest=true ./node deps/npm/test/run.js
15286c8 @ry Start 'make test-uv' command
ry authored
88
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
89 apidoc_sources = $(wildcard doc/api/*.markdown)
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
90 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
91
ae17e2d @ry Fix doc generation for new website
ry authored
92 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
93
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
94 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored
95
90d1e47 @ry make doc improvements
ry authored
96 website_files = \
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
97 out/doc/index.html \
98 out/doc/v0.4_announcement.html \
99 out/doc/cla.html \
100 out/doc/sh_main.js \
101 out/doc/sh_javascript.min.js \
102 out/doc/sh_vim-dark.css \
103 out/doc/logo.png \
104 out/doc/sponsored.png \
ae17e2d @ry Fix doc generation for new website
ry authored
105 out/doc/favicon.ico \
106 out/doc/pipe.css \
107 out/doc/about/index.html \
108 out/doc/close-downloads.png \
109 out/doc/community/index.html \
110 out/doc/community/not-invented-here.png \
111 out/doc/download-logo.png \
112 out/doc/ebay-logo.png \
113 out/doc/footer-logo.png \
114 out/doc/icons.png \
115 out/doc/linkedin-logo.png \
116 out/doc/logos/index.html \
117 out/doc/microsoft-logo.png \
118 out/doc/platform-icons.png \
119 out/doc/ryan-speaker.jpg \
120 out/doc/yahoo-logo.png
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
121
317ba9f @ry Fix 'make dist'
ry authored
122 doc: node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
320e002 @ry fix 'make doc'
ry authored
123
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
124 $(apidoc_dirs):
125 mkdir -p $@
2392775 @ry Fix make doc
ry authored
126
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
127 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
128 cp $< $@
129
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
130 out/doc/%: doc/%
90d1e47 @ry make doc improvements
ry authored
131 cp $< $@
132
317ba9f @ry Fix 'make dist'
ry authored
133 out/doc/api/%.html: doc/api/%.markdown node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
134 out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
135
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
136 out/doc/%:
2392775 @ry Fix make doc
ry authored
137
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
138 website-upload: doc
ee73132 @ry use rsync instead of scp to upload website
ry authored
139 rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
140
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
141 docopen: out/doc/api/all.html
142 -google-chrome out/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
143
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
144 docclean:
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
145 -rm -rf out/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
146
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
147 VERSION=v$(shell $(PYTHON) tools/getnodeversion.py)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
148 TARNAME=node-$(VERSION)
317ba9f @ry Fix 'make dist'
ry authored
149 TARBALL=$(TARNAME).tar.gz
150 PKG=out/$(TARNAME).pkg
151 packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
152
317ba9f @ry Fix 'make dist'
ry authored
153 dist: doc $(TARBALL) $(PKG)
5bc1809 @ry Add 'make dist-upload'
ry authored
154
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored
155 PKGDIR=out/dist-osx
156
157 pkg: $(PKG)
158
5bc1809 @ry Add 'make dist-upload'
ry authored
159 $(PKG):
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored
160 -rm -rf $(PKGDIR)
317ba9f @ry Fix 'make dist'
ry authored
161 ./configure --prefix=$(PKGDIR)/usr/local --without-snapshot
162 $(MAKE) install
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored
163 $(packagemaker) \
164 --id "org.nodejs.NodeJS-$(VERSION)" \
165 --doc tools/osx-pkg.pmdoc \
166 --out $(PKG)
5bc1809 @ry Add 'make dist-upload'
ry authored
167
317ba9f @ry Fix 'make dist'
ry authored
168 $(TARBALL): node out/doc
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
169 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
170 mkdir -p $(TARNAME)/doc
171 cp doc/node.1 $(TARNAME)/doc/node.1
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
172 cp -r out/doc/api $(TARNAME)/doc/api
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
173 rm -rf $(TARNAME)/deps/v8/test # too big
a0198d0 @ry Remove logos from package
ry authored
174 rm -rf $(TARNAME)/doc/logos # too big
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
175 tar -cf $(TARNAME).tar $(TARNAME)
176 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
177 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
178
716f5bc @ry Add make dist-upload
ry authored
179 dist-upload: $(TARBALL) $(PKG)
180 ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
181 scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
182 scp $(PKG) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARNAME).pkg
183
ff456b3 @ry Add 'make bench' script
ry authored
184 bench:
185 benchmark/http_simple_bench.sh
186
3cf4827 @ry Add idle connection test
ry authored
187 bench-idle:
188 ./node benchmark/idle_server.js &
189 sleep 1
190 ./node benchmark/idle_clients.js &
191
ac58d3a @ry Import cpplint.py
ry authored
192 jslint:
b073989 @mmalecki makefile: ignore `lib/punycode.js` while linting
mmalecki authored
193 PYTHONPATH=tools/closure_linter/ $(PYTHON) tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ -r test/ --exclude_files lib/punycode.js
3cf4827 @ry Add idle connection test
ry authored
194
ac58d3a @ry Import cpplint.py
ry authored
195 cpplint:
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
196 @$(PYTHON) tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored
197
198 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored
199
317ba9f @ry Fix 'make dist'
ry authored
200 .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all program staticlib dynamiclib test test-all website-upload pkg
Something went wrong with that request. Please try again.