1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

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

llvm-svn: 17172
This commit is contained in:
Reid Spencer 2004-10-22 23:06:30 +00:00
parent 101bcc348a
commit 09a89bb3a7

View 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