Make sure that we don't set up a circular dependency if OBJDIR == SRCDIR


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17172 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.rules b/Makefile.rules
index 01a9941..cd82e13 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -762,6 +762,7 @@
 #------------------------------------------------------------------------
 # 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 @@
 	$(VERB) cp -f $< $@
 	$(VERB) $(MAKE) $(MAKEFLAGS) $(MAKECMDGOALS)
 	@exit 0;
+endif
 
 ###############################################################################
 # MISCELLANEOUS - utility targets