@@ -134,16 +134,16 @@ test-npm: $(NODE_EXE)
134
134
rm -rf npm-cache npm-tmp npm-prefix
135
135
mkdir npm-cache npm-tmp npm-prefix
136
136
cd deps/npm ; npm_config_cache=" $( shell pwd) /npm-cache" \
137
- npm_config_prefix=" $( shell pwd) /npm-prefix" \
138
- npm_config_tmp=" $( shell pwd) /npm-tmp" \
139
- ../../$(NODE_EXE ) cli.js install --ignore-scripts
137
+ npm_config_prefix=" $( shell pwd) /npm-prefix" \
138
+ npm_config_tmp=" $( shell pwd) /npm-tmp" \
139
+ ../../$(NODE_EXE ) cli.js install --ignore-scripts
140
140
cd deps/npm ; npm_config_cache=" $( shell pwd) /npm-cache" \
141
- npm_config_prefix=" $( shell pwd) /npm-prefix" \
142
- npm_config_tmp=" $( shell pwd) /npm-tmp" \
143
- ../../$(NODE_EXE ) cli.js run-script test-all && \
144
- ../../$(NODE_EXE ) cli.js prune --prod && \
145
- cd ../.. && \
146
- rm -rf npm-cache npm-tmp npm-prefix
141
+ npm_config_prefix=" $( shell pwd) /npm-prefix" \
142
+ npm_config_tmp=" $( shell pwd) /npm-tmp" \
143
+ ../../$(NODE_EXE ) cli.js run-script test-all && \
144
+ ../../$(NODE_EXE ) cli.js prune --prod && \
145
+ cd ../.. && \
146
+ rm -rf npm-cache npm-tmp npm-prefix
147
147
148
148
test-npm-publish : $(NODE_EXE )
149
149
npm_package_config_publishtest=true ./$(NODE_EXE ) deps/npm/test/run.js
@@ -160,7 +160,7 @@ test-timers-clean:
160
160
161
161
apidoc_sources = $(wildcard doc/api/* .markdown)
162
162
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html ) ) \
163
- $(addprefix out/,$(apidoc_sources:.markdown=.json ) )
163
+ $(addprefix out/,$(apidoc_sources:.markdown=.json ) )
164
164
165
165
apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
166
166
@@ -244,7 +244,7 @@ release-only:
244
244
@if [ " $( shell git status --porcelain | egrep -v ' ^\?\? ' ) " = " " ]; then \
245
245
exit 0 ; \
246
246
else \
247
- echo " " >&2 ; \
247
+ echo " " >&2 ; \
248
248
echo " The git repository is not clean." >&2 ; \
249
249
echo " Please commit changes before building release tarball." >&2 ; \
250
250
echo " " >&2 ; \
@@ -255,10 +255,26 @@ release-only:
255
255
@if [ " $( NIGHTLY) " != " " -o " $( RELEASE) " = " 1" ]; then \
256
256
exit 0; \
257
257
else \
258
- echo " " >&2 ; \
258
+ echo " " >&2 ; \
259
259
echo " #NODE_VERSION_IS_RELEASE is set to $( RELEASE) ." >&2 ; \
260
- echo " Did you remember to update src/node_version.cc?" >&2 ; \
261
- echo " " >&2 ; \
260
+ echo " Did you remember to update src/node_version.h?" >&2 ; \
261
+ echo " " >&2 ; \
262
+ exit 1 ; \
263
+ fi
264
+ @if [ " $( RELEASE_SOURCE_URL) " != " " ]; then \
265
+ exit 0; \
266
+ else \
267
+ echo " " >&2 ; \
268
+ echo " #RELEASE_SOURCE_URL is not set." >&2 ; \
269
+ echo " " >&2 ; \
270
+ exit 1 ; \
271
+ fi
272
+ @if [ " $( RELEASE_HEADERS_URL) " != " " ]; then \
273
+ exit 0; \
274
+ else \
275
+ echo " " >&2 ; \
276
+ echo " #RELEASE_HEADERS_URL is not set." >&2 ; \
277
+ echo " " >&2 ; \
262
278
exit 1 ; \
263
279
fi
264
280
@@ -267,10 +283,14 @@ pkg: $(PKG)
267
283
$(PKG ) : release-only
268
284
rm -rf $(PKGDIR )
269
285
rm -rf out/deps out/Release
270
- $(PYTHON ) ./configure --dest-cpu=ia32 --tag=$(TAG )
286
+ $(PYTHON ) ./configure --dest-cpu=ia32 --tag=$(TAG ) \
287
+ --release-source-url=$(RELEASE_SOURCE_URL ) \
288
+ --release-headers-url=$(RELEASE_HEADERS_URL )
271
289
$(MAKE ) install V=$(V ) DESTDIR=$(PKGDIR ) /32
272
290
rm -rf out/deps out/Release
273
- $(PYTHON ) ./configure --dest-cpu=x64 --tag=$(TAG )
291
+ $(PYTHON ) ./configure --dest-cpu=x64 --tag=$(TAG ) \
292
+ --release-source-url=$(RELEASE_SOURCE_URL ) \
293
+ --release-headers-url=$(RELEASE_HEADERS_URL )
274
294
$(MAKE ) install V=$(V ) DESTDIR=$(PKGDIR )
275
295
SIGN=" $( APP_SIGN) " PKGDIR=" $( PKGDIR) " bash tools/osx-codesign.sh
276
296
lipo $(PKGDIR ) /32/usr/local/bin/iojs \
@@ -308,7 +328,10 @@ tar: $(TARBALL)
308
328
$(BINARYTAR ) : release-only
309
329
rm -rf $(BINARYNAME )
310
330
rm -rf out/deps out/Release
311
- $(PYTHON ) ./configure --prefix=/ --dest-cpu=$(DESTCPU ) --tag=$(TAG ) $(CONFIG_FLAGS )
331
+ $(PYTHON ) ./configure --prefix=/ --dest-cpu=$(DESTCPU ) \
332
+ --tag=$(TAG ) \
333
+ --release-source-url=$(RELEASE_SOURCE_URL ) \
334
+ --release-headers-url=$(RELEASE_HEADERS_URL ) $(CONFIG_FLAGS )
312
335
$(MAKE ) install DESTDIR=$(BINARYNAME ) V=$(V ) PORTABLE=1
313
336
cp README.md $(BINARYNAME )
314
337
cp LICENSE $(BINARYNAME )
@@ -326,7 +349,9 @@ binary: $(BINARYTAR)
326
349
$(PKGSRC ) : release-only
327
350
rm -rf dist out
328
351
$(PYTHON ) configure --prefix=/ \
329
- --dest-cpu=$(DESTCPU ) --tag=$(TAG ) $(CONFIG_FLAGS )
352
+ --dest-cpu=$(DESTCPU ) --tag=$(TAG ) \
353
+ --release-source-url=$(RELEASE_SOURCE_URL ) \
354
+ --release-headers-url=$(RELEASE_HEADERS_URL ) $(CONFIG_FLAGS )
330
355
$(MAKE ) install DESTDIR=dist
331
356
(cd dist; find * -type f | sort) > packlist
332
357
pkg_info -X pkg_install | \
@@ -380,7 +405,7 @@ bench-all: bench bench-misc bench-array bench-buffer bench-url bench-events
380
405
bench : bench-net bench-http bench-fs bench-tls
381
406
382
407
bench-http-simple :
383
- benchmark/http_simple_bench.sh
408
+ benchmark/http_simple_bench.sh
384
409
385
410
bench-idle :
386
411
./$(NODE_EXE ) benchmark/idle_server.js &
0 commit comments