Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 300 lines (234 sloc) 9.005 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
ea50ebd @skenqbx build: support make install "DESTDIR=/path"
skenqbx authored
5 DESTDIR ?=
2dd710e @isaacs build: Sign pkg installer for OS X
isaacs authored
6 SIGN ?=
90ab079 @ry Use --jobs=1 with WAF
ry authored
7
8656c26 @isaacs Fix #3761 build: Default to V=1
isaacs authored
8 # Default to verbose builds.
9 # To do quiet/pretty builds, run `make V=` to set V to an empty string,
10 # or set the V environment variable to an empty string.
11 V ?= 1
12
f89beaf @bnoordhuis build: compile release build too if BUILDTYPE=Debug
bnoordhuis authored
13 # BUILDTYPE=Debug builds both release and debug builds. If you want to compile
14 # just the debug build, run `make -C out BUILDTYPE=Debug` instead.
10d92b3 @ry saner targets
ry authored
15 ifeq ($(BUILDTYPE),Release)
16 all: out/Makefile node
17 else
f89beaf @bnoordhuis build: compile release build too if BUILDTYPE=Debug
bnoordhuis authored
18 all: out/Makefile node node_g
10d92b3 @ry saner targets
ry authored
19 endif
20
bb8f734 @ry Fix make targets so they detect changes
ry authored
21 # The .PHONY is needed to ensure that we recursively use the out/Makefile
22 # to check for changes.
23 .PHONY: node node_g
10d92b3 @ry saner targets
ry authored
24
21dd53f @ry Makefile: Don't force user to run ./configure first
ry authored
25 node: config.gypi
8656c26 @isaacs Fix #3761 build: Default to V=1
isaacs authored
26 $(MAKE) -C out BUILDTYPE=Release V=$(V)
bb8f734 @ry Fix make targets so they detect changes
ry authored
27 ln -fs out/Release/node node
10d92b3 @ry saner targets
ry authored
28
21dd53f @ry Makefile: Don't force user to run ./configure first
ry authored
29 node_g: config.gypi
8656c26 @isaacs Fix #3761 build: Default to V=1
isaacs authored
30 $(MAKE) -C out BUILDTYPE=Debug V=$(V)
bb8f734 @ry Fix make targets so they detect changes
ry authored
31 ln -fs out/Debug/node node_g
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
32
21dd53f @ry Makefile: Don't force user to run ./configure first
ry authored
33 config.gypi: configure
34 ./configure
35
10d92b3 @ry saner targets
ry authored
36 out/Debug/node:
8656c26 @isaacs Fix #3761 build: Default to V=1
isaacs authored
37 $(MAKE) -C out BUILDTYPE=Debug V=$(V)
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
38
624f70e @ry GYP: rename options.gypi to config.gypi
ry authored
39 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
d5f13f6 @bnoordhuis build: use proper python interpreter
bnoordhuis authored
40 $(PYTHON) tools/gyp_node -f make
e5a0fbe @rsms Added support for cross compilation and also fixed DEST_CPU to repres…
rsms authored
41
be23c51 @indutny Implement make install
indutny authored
42 install: all
50e00de @bnoordhuis installer: fix cross-compile installs
bnoordhuis authored
43 $(PYTHON) tools/install.py $@ $(DESTDIR)
be23c51 @indutny Implement make install
indutny authored
44
45 uninstall:
50e00de @bnoordhuis installer: fix cross-compile installs
bnoordhuis authored
46 $(PYTHON) tools/install.py $@ $(DESTDIR)
1db9a2a @bnoordhuis build: print "not yet implemented" warning on `make install`
bnoordhuis authored
47
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
48 clean:
7abbda8 @isaacs Make rules for release blog post and email message
isaacs authored
49 -rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md
02c1cb5 @isaacs Makefile: Don't use ** in globs
isaacs authored
50 -find out/ -name '*.o' -o -name '*.a' | xargs rm -rf
e63c782 @isaacs Tests for memory leaks
isaacs authored
51 -rm -rf node_modules
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
52
14b04b0 @ry Remove SCONS deprecate WAF
ry authored
53 distclean:
48d21dd @ry Force makefile generation in gyp
ry authored
54 -rm -rf out
0787287 @TooTallNate build: remove 'config.mk' during `make distclean`
TooTallNate authored
55 -rm -f config.gypi
56 -rm -f config.mk
7abbda8 @isaacs Make rules for release blog post and email message
isaacs authored
57 -rm -rf node node_g blog.html email.md
e63c782 @isaacs Tests for memory leaks
isaacs authored
58 -rm -rf node_modules
15594ea @ry Replace WAF with make/autoconf
ry authored
59
eaf607e @isaacs test: No need for weak in 'make test'
isaacs authored
60 test: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
61 $(PYTHON) tools/test.py --mode=release simple message
bae4018 @isaacs Run jslint after tests, not before
isaacs authored
62 PYTHONPATH=tools/closure_linter/ $(PYTHON) tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
63
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored
64 test-http1: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
65 $(PYTHON) tools/test.py --mode=release --use-http1 simple message
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
66
d02131d @ry Add 'make test-valgrind'
ry authored
67 test-valgrind: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
68 $(PYTHON) tools/test.py --mode=release --valgrind simple message
d02131d @ry Add 'make test-valgrind'
ry authored
69
6a8b5b3 @TooTallNate test: bundle node-weak in test/gc so that it doesn't need to be downl…
TooTallNate authored
70 test/gc/node_modules/weak/build:
e63c782 @isaacs Tests for memory leaks
isaacs authored
71 @if [ ! -f node ]; then make all; fi
6a8b5b3 @TooTallNate test: bundle node-weak in test/gc so that it doesn't need to be downl…
TooTallNate authored
72 ./node deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
73 --directory="$(shell pwd)/test/gc/node_modules/weak" \
74 --nodedir="$(shell pwd)"
e63c782 @isaacs Tests for memory leaks
isaacs authored
75
6a8b5b3 @TooTallNate test: bundle node-weak in test/gc so that it doesn't need to be downl…
TooTallNate authored
76 test-gc: all test/gc/node_modules/weak/build
e63c782 @isaacs Tests for memory leaks
isaacs authored
77 $(PYTHON) tools/test.py --mode=release gc
78
6a8b5b3 @TooTallNate test: bundle node-weak in test/gc so that it doesn't need to be downl…
TooTallNate authored
79 test-all: all test/gc/node_modules/weak/build
e63c782 @isaacs Tests for memory leaks
isaacs authored
80 $(PYTHON) tools/test.py --mode=debug,release
81 make test-npm
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
82
38f948a @bnoordhuis http: make http2 the default, legacy backend is available with --use-…
bnoordhuis authored
83 test-all-http1: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
84 $(PYTHON) tools/test.py --mode=debug,release --use-http1
e1bb241 @bnoordhuis test: add targets `test-http2` and `test-all-http2`
bnoordhuis authored
85
d02131d @ry Add 'make test-valgrind'
ry authored
86 test-all-valgrind: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
87 $(PYTHON) tools/test.py --mode=debug,release --valgrind
d02131d @ry Add 'make test-valgrind'
ry authored
88
97c9745 @ry Back to WAF
ry authored
89 test-release: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
90 $(PYTHON) tools/test.py --mode=release
6670154 @ry 'make test' only runs the simple test
ry authored
91
97c9745 @ry Back to WAF
ry authored
92 test-debug: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
93 $(PYTHON) tools/test.py --mode=debug
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
94
97c9745 @ry Back to WAF
ry authored
95 test-message: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
96 $(PYTHON) tools/test.py message
125b868 @ry Add message tests
ry authored
97
97c9745 @ry Back to WAF
ry authored
98 test-simple: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
99 $(PYTHON) tools/test.py simple
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
100
97c9745 @ry Back to WAF
ry authored
101 test-pummel: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
102 $(PYTHON) tools/test.py pummel
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
103
97c9745 @ry Back to WAF
ry authored
104 test-internet: all
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
105 $(PYTHON) tools/test.py internet
04fac19 @arlolra Split tests.
arlolra authored
106
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
107 test-npm: node
d75de86 @isaacs add 'make test-npm'
isaacs authored
108 ./node deps/npm/test/run.js
109
f7f8af8 @ry Merge remote branch 'origin/v0.6'
ry authored
110 test-npm-publish: node
d75de86 @isaacs add 'make test-npm'
isaacs authored
111 npm_package_config_publishtest=true ./node deps/npm/test/run.js
15286c8 @ry Start 'make test-uv' command
ry authored
112
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
113 apidoc_sources = $(wildcard doc/api/*.markdown)
7d6d5e2 @isaacs Use new doc generation tool
isaacs authored
114 apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html)) \
115 $(addprefix out/,$(apidoc_sources:.markdown=.json))
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
116
a7af84f @isaacs docs: Move images out of the dist tarball
isaacs authored
117 apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos out/doc/images
2392775 @ry Fix make doc
ry authored
118
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
119 apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
320e002 @ry fix 'make doc'
ry authored
120
a7af84f @isaacs docs: Move images out of the dist tarball
isaacs authored
121 doc_images = $(addprefix out/,$(wildcard doc/images/* doc/*.jpg doc/*.png))
122
90d1e47 @ry make doc improvements
ry authored
123 website_files = \
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
124 out/doc/index.html \
125 out/doc/v0.4_announcement.html \
126 out/doc/cla.html \
127 out/doc/sh_main.js \
128 out/doc/sh_javascript.min.js \
129 out/doc/sh_vim-dark.css \
5c0d11b @isaacs doc: Add images to makefile
isaacs authored
130 out/doc/sh.css \
ae17e2d @ry Fix doc generation for new website
ry authored
131 out/doc/favicon.ico \
132 out/doc/pipe.css \
133 out/doc/about/index.html \
134 out/doc/community/index.html \
5c0d11b @isaacs doc: Add images to makefile
isaacs authored
135 out/doc/logos/index.html \
e066074 @isaacs Fix #3089 Build changelog.html for website
isaacs authored
136 out/doc/changelog.html \
a7af84f @isaacs docs: Move images out of the dist tarball
isaacs authored
137 $(doc_images)
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
138
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
139 doc: $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/ blog node
8f1a38d @isaacs Generate static HTML blog content out of markdown
isaacs authored
140
141 blogclean:
142 rm -rf out/blog
143
144 blog: doc/blog out/Release/node tools/blog
d34fea5 @isaacs blog: Generate RSS feeds
isaacs authored
145 out/Release/node tools/blog/generate.js doc/blog/ out/blog/ doc/blog.html doc/rss.xml
320e002 @ry fix 'make doc'
ry authored
146
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
147 $(apidoc_dirs):
148 mkdir -p $@
2392775 @ry Fix make doc
ry authored
149
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
150 out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
151 cp $< $@
152
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
153 out/doc/changelog.html: ChangeLog doc/changelog-head.html doc/changelog-foot.html tools/build-changelog.sh node
e066074 @isaacs Fix #3089 Build changelog.html for website
isaacs authored
154 bash tools/build-changelog.sh
155
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
156 out/doc/%.html: doc/%.html node
4637688 @isaacs Remove hard-coded version number from docs
isaacs authored
157 cat $< | sed -e 's|__VERSION__|'$(VERSION)'|g' > $@
158
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
159 out/doc/%: doc/%
a7af84f @isaacs docs: Move images out of the dist tarball
isaacs authored
160 cp -r $< $@
90d1e47 @ry make doc improvements
ry authored
161
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
162 out/doc/api/%.json: doc/api/%.markdown node
7d6d5e2 @isaacs Use new doc generation tool
isaacs authored
163 out/Release/node tools/doc/generate.js --format=json $< > $@
164
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
165 out/doc/api/%.html: doc/api/%.markdown node
7d6d5e2 @isaacs Use new doc generation tool
isaacs authored
166 out/Release/node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
167
7abbda8 @isaacs Make rules for release blog post and email message
isaacs authored
168 email.md: ChangeLog tools/email-footer.md
8068f9b @isaacs Escape leading # signs in 'make email.md'
isaacs authored
169 bash tools/changelog-head.sh | sed 's|^\* #|* \\#|g' > $@
7abbda8 @isaacs Make rules for release blog post and email message
isaacs authored
170 cat tools/email-footer.md | sed -e 's|__VERSION__|'$(VERSION)'|g' >> $@
171
172 blog.html: email.md
3ba9519 @isaacs Makefile: minor nit
isaacs authored
173 cat $< | ./node tools/doc/node_modules/.bin/marked > $@
7abbda8 @isaacs Make rules for release blog post and email message
isaacs authored
174
8f1a38d @isaacs Generate static HTML blog content out of markdown
isaacs authored
175 blog-upload: blog
176 rsync -r out/blog/ node@nodejs.org:~/web/nodejs.org/blog/
177
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
178 website-upload: doc
ee73132 @ry use rsync instead of scp to upload website
ry authored
179 rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
066789a @isaacs Fix #3001 website update 'latest' links on publish
isaacs authored
180 ssh node@nodejs.org '\
181 rm -f ~/web/nodejs.org/dist/latest &&\
182 ln -s $(VERSION) ~/web/nodejs.org/dist/latest &&\
183 rm -f ~/web/nodejs.org/docs/latest &&\
184 ln -s $(VERSION) ~/web/nodejs.org/docs/latest &&\
185 rm -f ~/web/nodejs.org/dist/node-latest.tar.gz &&\
186 ln -s $(VERSION)/node-$(VERSION).tar.gz ~/web/nodejs.org/dist/node-latest.tar.gz'
ade8cf9 @miksago Build API page into build/doc; simplify doctool.
miksago authored
187
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
188 docopen: out/doc/api/all.html
189 -google-chrome out/doc/api/all.html
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
190
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
191 docclean:
a7300c8 @ry WAF builds in out/ instead of build/
ry authored
192 -rm -rf out/doc
2c016ba @ry 'make distclean' should not call 'waf clean'
ry authored
193
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
194 VERSION=v$(shell $(PYTHON) tools/getnodeversion.py)
42aac41 @TooTallNate Makefile: add target for precompiled binary tarballs
TooTallNate authored
195 PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
196 ARCH=$(shell uname -m)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
197 TARNAME=node-$(VERSION)
317ba9f @ry Fix 'make dist'
ry authored
198 TARBALL=$(TARNAME).tar.gz
42aac41 @TooTallNate Makefile: add target for precompiled binary tarballs
TooTallNate authored
199 BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)
200 BINARYTAR=$(BINARYNAME).tar.gz
317ba9f @ry Fix 'make dist'
ry authored
201 PKG=out/$(TARNAME).pkg
202 packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
203
317ba9f @ry Fix 'make dist'
ry authored
204 dist: doc $(TARBALL) $(PKG)
5bc1809 @ry Add 'make dist-upload'
ry authored
205
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored
206 PKGDIR=out/dist-osx
207
208 pkg: $(PKG)
209
5bc1809 @ry Add 'make dist-upload'
ry authored
210 $(PKG):
e60b18b @TooTallNate Make a fat binary for the OS X `make pkg`.
TooTallNate authored
211 rm -rf $(PKGDIR)
212 rm -rf out/deps out/Release
213 ./configure --prefix=$(PKGDIR)/32/usr/local --without-snapshot --dest-cpu=ia32
8656c26 @isaacs Fix #3761 build: Default to V=1
isaacs authored
214 $(MAKE) install V=$(V)
e60b18b @TooTallNate Make a fat binary for the OS X `make pkg`.
TooTallNate authored
215 rm -rf out/deps out/Release
216 ./configure --prefix=$(PKGDIR)/usr/local --without-snapshot --dest-cpu=x64
8656c26 @isaacs Fix #3761 build: Default to V=1
isaacs authored
217 $(MAKE) install V=$(V)
2dd710e @isaacs build: Sign pkg installer for OS X
isaacs authored
218 SIGN="$(SIGN)" PKGDIR="$(PKGDIR)" bash tools/osx-codesign.sh
e60b18b @TooTallNate Make a fat binary for the OS X `make pkg`.
TooTallNate authored
219 lipo $(PKGDIR)/32/usr/local/bin/node \
220 $(PKGDIR)/usr/local/bin/node \
221 -output $(PKGDIR)/usr/local/bin/node-universal \
222 -create
223 mv $(PKGDIR)/usr/local/bin/node-universal $(PKGDIR)/usr/local/bin/node
224 rm -rf $(PKGDIR)/32
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored
225 $(packagemaker) \
2dd710e @isaacs build: Sign pkg installer for OS X
isaacs authored
226 --id "org.nodejs.Node" \
9d1bdbc @ry Fixes #2084. Makeify tools/osx-dist.sh
ry authored
227 --doc tools/osx-pkg.pmdoc \
228 --out $(PKG)
2dd710e @isaacs build: Sign pkg installer for OS X
isaacs authored
229 SIGN="$(SIGN)" PKG="$(PKG)" bash tools/osx-productsign.sh
5bc1809 @ry Add 'make dist-upload'
ry authored
230
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
231 $(TARBALL): node doc
bdd57f0 @isaacs Makefile: Refuse to build release from unclean repo
isaacs authored
232 @if [ "$(shell git status --porcelain | egrep -v '^\?\? ')" = "" ]; then \
233 exit 0 ; \
234 else \
235 echo "" >&2 ; \
236 echo "The git repository is not clean." >&2 ; \
237 echo "Please commit changes before building release tarball." >&2 ; \
238 echo "" >&2 ; \
239 git status --porcelain | egrep -v '^\?\?' >&2 ; \
240 echo "" >&2 ; \
241 exit 1 ; \
242 fi
349cab0 @isaacs Check the version before building tarball
isaacs authored
243 @if [ $(shell ./node --version) = "$(VERSION)" ]; then \
244 exit 0; \
245 else \
246 echo "" >&2 ; \
247 echo "$(shell ./node --version) doesn't match $(VERSION)." >&2 ; \
248 echo "Did you remember to update src/node_version.cc?" >&2 ; \
249 echo "" >&2 ; \
250 exit 1 ; \
251 fi
a1138c6 @miksago Cleanup Makefile for JSLint, CPPLint
miksago authored
252 git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
c45522d @isaacs build: Prevent duplication of doc/api folder
isaacs authored
253 mkdir -p $(TARNAME)/doc/api
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
254 cp doc/node.1 $(TARNAME)/doc/node.1
c45522d @isaacs build: Prevent duplication of doc/api folder
isaacs authored
255 cp -r out/doc/api/* $(TARNAME)/doc/api/
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
256 rm -rf $(TARNAME)/deps/v8/test # too big
a7af84f @isaacs docs: Move images out of the dist tarball
isaacs authored
257 rm -rf $(TARNAME)/doc/images # too big
76f6a4a @isaacs Remove dep symlinks from tarball
isaacs authored
258 find $(TARNAME)/ -type l | xargs rm # annoying on windows
ce2d5ad @ry Change the 'make dist' to remove v8 test dir
ry authored
259 tar -cf $(TARNAME).tar $(TARNAME)
260 rm -rf $(TARNAME)
bf0d278 @ry Improve "make dist" remove generated doc from repo.
ry authored
261 gzip -f -9 $(TARNAME).tar
861f28f @ry Don't unnecessarily output the makefile from the configure script.
ry authored
262
42aac41 @TooTallNate Makefile: add target for precompiled binary tarballs
TooTallNate authored
263 $(BINARYTAR):
264 rm -rf $(BINARYNAME)
265 rm -rf out/deps out/Release
266 ./configure --prefix=/ --without-snapshot
267 $(MAKE) install DESTDIR=$(BINARYNAME) V=$(V) PORTABLE=1
268 cp README.md $(BINARYNAME)
269 cp LICENSE $(BINARYNAME)
270 cp ChangeLog $(BINARYNAME)
271 tar -cf $(BINARYNAME).tar $(BINARYNAME)
272 rm -rf $(BINARYNAME)
273 gzip -f -9 $(BINARYNAME).tar
274
716f5bc @ry Add make dist-upload
ry authored
275 dist-upload: $(TARBALL) $(PKG)
276 ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
277 scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
278 scp $(PKG) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARNAME).pkg
279
ff456b3 @ry Add 'make bench' script
ry authored
280 bench:
281 benchmark/http_simple_bench.sh
282
3cf4827 @ry Add idle connection test
ry authored
283 bench-idle:
284 ./node benchmark/idle_server.js &
285 sleep 1
286 ./node benchmark/idle_clients.js &
287
7fd3cb6 @isaacs Build: add jslintfix
isaacs authored
288 jslintfix:
289 PYTHONPATH=tools/closure_linter/ $(PYTHON) tools/closure_linter/closure_linter/fixjsstyle.py --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
290
ac58d3a @ry Import cpplint.py
ry authored
291 jslint:
605927f @isaacs Fix test/ jslint failures (by not linting tests)
isaacs authored
292 PYTHONPATH=tools/closure_linter/ $(PYTHON) tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
3cf4827 @ry Add idle connection test
ry authored
293
ac58d3a @ry Import cpplint.py
ry authored
294 cpplint:
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
295 @$(PYTHON) tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
ac58d3a @ry Import cpplint.py
ry authored
296
297 lint: jslint cpplint
a128451 @ry Import Google's closure_linter
ry authored
298
fecebe1 @isaacs build: Regenerate docs for tarball and releases
isaacs authored
299 .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install install-includes install-bin all staticlib dynamiclib test test-all website-upload pkg blog blogclean
Something went wrong with that request. Please try again.