From c5d1ec7fea3fd36f750ffb4bf83001497cc1260a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Fri, 12 Jun 2015 15:12:20 +1000 Subject: [PATCH] build: simplify execution of built binary Since we aleady have a variable with path to the newly built binary, use that instead of prefixing path. This also allows us to pass a different path through the environment (NODE=) PR-URL: https://github.com/nodejs/io.js/pull/1955 PORT-PR-URL: https://github.com/nodejs/io.js/pull/2101 PORT-FROM: 1ec53c044d2f9d929192dc3d5ededff11d328f63 Reviewed-By: Ben Noordhuis Reviewed-By: Rod Vagg --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8fc67d604e91b0..16a09e14d43cc7 100644 --- a/Makefile +++ b/Makefile @@ -87,16 +87,16 @@ test-valgrind: all $(PYTHON) tools/test.py --mode=release --valgrind sequential parallel message test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE) - ./$(NODE_EXE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ + $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ --directory="$(shell pwd)/test/gc/node_modules/weak" \ --nodedir="$(shell pwd)" build-addons: $(NODE_EXE) rm -rf test/addons/doc-*/ - ./$(NODE_EXE) tools/doc/addon-verify.js + $(NODE) tools/doc/addon-verify.js $(foreach dir, \ $(sort $(dir $(wildcard test/addons/*/*.gyp))), \ - ./$(NODE_EXE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ + $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ --directory="$(shell pwd)/$(dir)" \ --nodedir="$(shell pwd)" && ) echo "build done" @@ -153,7 +153,7 @@ test-npm: $(NODE_EXE) rm -rf npm-cache npm-tmp npm-prefix test-npm-publish: $(NODE_EXE) - npm_package_config_publishtest=true ./$(NODE_EXE) deps/npm/test/run.js + npm_package_config_publishtest=true $(NODE) deps/npm/test/run.js test-addons: test-build $(PYTHON) tools/test.py --mode=release addons @@ -185,10 +185,10 @@ out/doc/%: doc/% cp -r $< $@ out/doc/api/%.json: doc/api/%.markdown $(NODE_EXE) - out/Release/$(NODE_EXE) tools/doc/generate.js --format=json $< > $@ + $(NODE) tools/doc/generate.js --format=json $< > $@ out/doc/api/%.html: doc/api/%.markdown $(NODE_EXE) - out/Release/$(NODE_EXE) tools/doc/generate.js --format=html --template=doc/template.html $< > $@ + $(NODE) tools/doc/generate.js --format=html --template=doc/template.html $< > $@ docopen: out/doc/api/all.html -google-chrome out/doc/api/all.html @@ -382,9 +382,9 @@ bench-http-simple: benchmark/http_simple_bench.sh bench-idle: - ./$(NODE_EXE) benchmark/idle_server.js & + $(NODE) benchmark/idle_server.js & sleep 1 - ./$(NODE_EXE) benchmark/idle_clients.js & + $(NODE) benchmark/idle_clients.js & jslintfix: PYTHONPATH=tools/closure_linter/:tools/gflags/ $(PYTHON) tools/closure_linter/closure_linter/fixjsstyle.py --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js