Make sure that we don't set up a circular dependency if OBJDIR == SRCDIR
authorReid Spencer <rspencer@reidspencer.com>
Fri, 22 Oct 2004 23:06:30 +0000 (23:06 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 22 Oct 2004 23:06:30 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17172 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 01a99418c32674f11f77245d120c7b7b5ba2787b..cd82e139582a8b4e0b2f366e89a3f5177270db8c 100644 (file)
@@ -762,6 +762,7 @@ $(MAKE_CONFIG): $(MAKE_CONFIG_IN)
 #------------------------------------------------------------------------
 # If the Makefile in the source tree has been updated, copy it over into the
 # build tree.
+ifneq ($(OBJMKFILE),$(SRCMKFILE))
 .PRECIOUS: $(OBJMKFILE)
 $(OBJMKFILE): $(SRCMKFILE)
        @$(ECHO) "Updating Makefile from : $(dir $<)"
@@ -769,6 +770,7 @@ $(OBJMKFILE): $(SRCMKFILE)
        $(VERB) cp -f $< $@
        $(VERB) $(MAKE) $(MAKEFLAGS) $(MAKECMDGOALS)
        @exit 0;
+endif
 
 ###############################################################################
 # MISCELLANEOUS - utility targets