diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-22 23:06:30 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-22 23:06:30 +0000 |
commit | e53e397a96e507584023d36413c5db9eaac8693c (patch) | |
tree | 80732b2d4c133049380b89dc6506b616dd73720a /Makefile.rules | |
parent | 99a401ceb14a4a85964cfb0fd25119eb96021a56 (diff) | |
download | llvm-e53e397a96e507584023d36413c5db9eaac8693c.tar.gz llvm-e53e397a96e507584023d36413c5db9eaac8693c.tar.bz2 llvm-e53e397a96e507584023d36413c5db9eaac8693c.tar.xz |
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 01a99418c3..cd82e13958 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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 |