1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Make sure that Makefile.rules and Makefile.config.in are not candidates for

automatic makefile update.

llvm-svn: 17269
This commit is contained in:
Reid Spencer 2004-10-26 23:10:00 +00:00
parent 1af6d6a47b
commit fd26f5b69e

View File

@ -61,7 +61,8 @@ $(USER_TARGETS)::
# PRECONDITIONS: that which must be built/checked first
################################################################################
SRCMKFILES := $(wildcard $(BUILD_SRC_DIR)/Makefile*)
SRCMKFILES := $(filter-out Makefile.rules %.in,\
$(wildcard $(BUILD_SRC_DIR)/Makefile.*))
OBJMKFILES := $(subst $(BUILD_SRC_DIR),$(BUILD_OBJ_DIR),$(SRCMKFILES))
CONFIGURE := $(LLVM_SRC_ROOT)/configure
CONFIG_STATUS := $(LLVM_OBJ_ROOT)/config.status
@ -106,18 +107,19 @@ $(BUILD_OBJ_DIR)/Makefile : $(BUILD_SRC_DIR)/Makefile
@$(ECHO) "Updating Makefile"
$(VERB) $(MKDIR) $(@D)
$(VERB) cp -f $< $@
$(VERB) $(MAKE) $(MAKECMDGOALS)
# Copy the Makefile.* files unless we're in the root directory which avoids
# the copying of Makefile.config.in or other things that should be explicitly
# taken care of.
ifneq ($(BUILD_OBJ_DIR),$(BUILD_OBJ_ROOT))
$(BUILD_OBJ_DIR)/Makefile% : $(BUILD_SRC_DIR)/Makefile%
@$(ECHO) "Updating $(@F)"
$(VERB) $(MKDIR) $(@D)
$(VERB) cp -f $< $@
$(VERB) $(MAKE) $(MAKECMDGOALS)
endif
@case '$?' in \
*Makefile.rules) ;; \
*.in) ;; \
*) $(ECHO) "Updating $(@F)" ; \
$(MKDIR) $(@D) ; \
cp -f $< $@ ;; \
esac
endif
#------------------------------------------------------------------------