Skip to content

HTTPS clone URL

Subversion checkout URL

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