aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-08-22 13:56:21 +0200
committerRefael Ackermann <refack@gmail.com>2018-08-22 19:23:33 -0400
commit9d9f691d26eda845ebf09f18985502e4f8b5b571 (patch)
treefa3820587996eca92ad402c7c0dbd1be87def92e /Makefile
parent68b07ded9ceb23cf411fa4843b01f533efb600b4 (diff)
downloadandroid-node-v8-9d9f691d26eda845ebf09f18985502e4f8b5b571.tar.gz
android-node-v8-9d9f691d26eda845ebf09f18985502e4f8b5b571.tar.bz2
android-node-v8-9d9f691d26eda845ebf09f18985502e4f8b5b571.zip
Revert "build: extract common code from NODE_EXE/_G_EXE"
This reverts commit 4e2fa8b0dc1acd95f558cd5f123711b9cc936c72. Refs: https://github.com/nodejs/node/issues/22457 PR-URL: https://github.com/nodejs/node/pull/22458 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index f3372b0963..3ca83bfed8 100644
--- a/Makefile
+++ b/Makefile
@@ -90,20 +90,18 @@ help: ## Print help for targets with comments.
# to check for changes.
.PHONY: $(NODE_EXE) $(NODE_G_EXE)
-define build_node_exe
-$(MAKE) -C out BUILDTYPE=$1 V=$(V)
# The -r/-L check stops it recreating the link if it is already in place,
# otherwise $(NODE_EXE) being a .PHONY target means it is always re-run.
# Without the check there is a race condition between the link being deleted
# and recreated which can break the addons build when running test-ci
# See comments on the build-addons target for some more info
-if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/$1/$(NODE_EXE) $@; fi
-endef
$(NODE_EXE): config.gypi out/Makefile
- @$(call build_node_exe,"Release")
+ $(MAKE) -C out BUILDTYPE=Release V=$(V)
+ if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Release/$(NODE_EXE) $@; fi
$(NODE_G_EXE): config.gypi out/Makefile
- @$(call build_node_exe,"Debug")
+ $(MAKE) -C out BUILDTYPE=Debug V=$(V)
+ if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi
CODE_CACHE_DIR ?= out/$(BUILDTYPE)/obj/gen
CODE_CACHE_FILE ?= $(CODE_CACHE_DIR)/node_code_cache.cc