From 7d277000af19b453748e97e347f4931a1546d0d8 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 29 Nov 2004 12:37:44 +0000 Subject: [PATCH] Allow reconfig from any directory, not just the top build directory, by changing directory first. Also make sure that we don't attempt to run config.status if the recheck didn't work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18351 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index ec61d13bd9f..2a49a4623e6 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -88,8 +88,9 @@ $(BUILT_SOURCES) : $(ObjMakefiles) .PRECIOUS: $(ConfigStatusScript) $(ConfigStatusScript): $(ConfigureScript) $(Echo) Reconfiguring with $< - $(Verb) $(ConfigStatusScript) --recheck $(ConfigureScriptFLAGS) - $(Verb) $(ConfigStatusScript) + $(Verb) cd $(BUILD_OBJ_ROOT) && \ + $(ConfigStatusScript) --recheck $(ConfigureScriptFLAGS) && \ + $(ConfigStatusScript) #------------------------------------------------------------------------ # Make sure the configuration makefile is up to date -- 2.34.1