From c75251ced210a3d82b6222388dee08704edd658e Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 10 Aug 2013 13:00:51 +0200 Subject: [PATCH] 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. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32ebc78..d3d302b 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)' -- 2.7.4