summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-29 12:37:44 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-29 12:37:44 +0000
commit7d277000af19b453748e97e347f4931a1546d0d8 (patch)
treeda612caeec48ba23567c7e720ec0b84d6b66c03a /Makefile.rules
parent8c8af327b83a210aed30634c908bb4b39f41eedb (diff)
downloadllvm-7d277000af19b453748e97e347f4931a1546d0d8.tar.gz
llvm-7d277000af19b453748e97e347f4931a1546d0d8.tar.bz2
llvm-7d277000af19b453748e97e347f4931a1546d0d8.tar.xz
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index ec61d13bd9..2a49a4623e 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