summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-06-16 21:28:34 +0200
committerJames M Snell <jasnell@gmail.com>2018-06-29 13:09:25 -0700
commit074e7f88aff0244dd9aee412e885194ce3f5a953 (patch)
tree0e822afafde71ca7ba6d16d35f392d5fd942b4cb /Makefile
parentbf360d2e151f9025a990e671147117139e596bfe (diff)
downloadandroid-node-v8-074e7f88aff0244dd9aee412e885194ce3f5a953.tar.gz
android-node-v8-074e7f88aff0244dd9aee412e885194ce3f5a953.tar.bz2
android-node-v8-074e7f88aff0244dd9aee412e885194ce3f5a953.zip
build: remove requirement to re-run ./configure
Instead of requiring `./configure` to be run again after the file changed, first try to re-run the configure script with the arguments with which it was originally run. Usually, those arguments will either contain no flags, or all flags that were passed are still supported. PR-URL: https://github.com/nodejs/node/pull/21371 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 99e8969221..38bb840674 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,12 @@ out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp \
$(PYTHON) tools/gyp_node.py -f make
config.gypi: configure
- $(error Missing or stale $@, please run ./$<)
+ @if [ -x config.status ]; then \
+ ./config.status; \
+ else \
+ echo Missing or stale $@, please run ./$<; \
+ exit 1; \
+ fi
.PHONY: install
install: all ## Installs node into $PREFIX (default=/usr/local).