From: Ben Noordhuis Date: Fri, 2 Jan 2015 16:00:27 +0000 (+0100) Subject: build: don't run make recursively X-Git-Tag: v1.0.0~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3f86103fa94e6d25f5214e43c50fe29e64dbcbb;p=platform%2Fupstream%2Fnodejs.git build: don't run make recursively For targets that need the binary: don't invoke `make all` as part of the recipe, just depend on the $(NODE_EXE) target. PR-URL: https://github.com/iojs/io.js/pull/262 Reviewed-By: Bert Belder --- diff --git a/Makefile b/Makefile index 25864c5..337779b 100644 --- a/Makefile +++ b/Makefile @@ -105,19 +105,17 @@ test-http1: all test-valgrind: all $(PYTHON) tools/test.py --mode=release --valgrind sequential parallel message -test/gc/node_modules/weak/build/Release/weakref.node: - @if [ ! -f $(NODE_EXE) ]; then make all; fi +test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE) ./$(NODE_EXE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ --directory="$(shell pwd)/test/gc/node_modules/weak" \ --nodedir="$(shell pwd)" -build-addons: - @if [ ! -f node ]; then make all; fi +build-addons: $(NODE_EXE) rm -rf test/addons/doc-*/ - ./node tools/doc/addon-verify.js + ./$(NODE_EXE) tools/doc/addon-verify.js $(foreach dir, \ $(sort $(dir $(wildcard test/addons/*/*.gyp))), \ - ./node deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ + ./$(NODE_EXE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ --directory="$(shell pwd)/$(dir)" \ --nodedir="$(shell pwd)" && ) echo "build done"