summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-08-10 13:00:51 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-08-10 13:13:46 +0200
commitc75251ced210a3d82b6222388dee08704edd658e (patch)
tree13054e2afc2104d65815612ed2985d96fecac138 /Makefile
parent3f5d5847e2f4f7e6d6f6557badda63b4cbf83e45 (diff)
downloadandroid-node-v8-c75251ced210a3d82b6222388dee08704edd658e.tar.gz
android-node-v8-c75251ced210a3d82b6222388dee08704edd658e.tar.bz2
android-node-v8-c75251ced210a3d82b6222388dee08704edd658e.zip
build: don't auto-destroy existing configuration
Don't run configure when the configure script has been touched. Doing so would be okay if the Makefile passed the original arguments to configure but it doesn't - it runs configure without any arguments, effectively destroying the current configuration. Remove this misfeature and instead print an error message telling the user to (re-)run configure.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 32ebc785a2..d3d302b301 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,11 @@ else
endif
config.gypi: configure
- $(PYTHON) ./configure
+ if [ -f $@ ]; then
+ $(error Stale $@, please re-run ./configure)
+ else
+ $(error No $@, please run ./configure first)
+ fi
install: all
$(PYTHON) tools/install.py $@ '$(DESTDIR)' '$(PREFIX)'