Allow reconfig from any directory, not just the top build directory, by
authorReid Spencer <rspencer@reidspencer.com>
Mon, 29 Nov 2004 12:37:44 +0000 (12:37 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 29 Nov 2004 12:37:44 +0000 (12:37 +0000)
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

index ec61d13bd9fbc0be25925d9b4f88d71f7374a894..2a49a4623e6877560fb24c8abeaa3c464cdc02c0 100644 (file)
@@ -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