[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Tue Oct 26 16:10:10 PDT 2004
Changes in directory llvm:
Makefile.rules updated: 1.215 -> 1.216
---
Log message:
Make sure that Makefile.rules and Makefile.config.in are not candidates for
automatic makefile update.
---
Diffs of the changes: (+10 -8)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.215 llvm/Makefile.rules:1.216
--- llvm/Makefile.rules:1.215 Tue Oct 26 17:26:33 2004
+++ llvm/Makefile.rules Tue Oct 26 18:10:00 2004
@@ -61,7 +61,8 @@
# 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 @@
@$(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
#------------------------------------------------------------------------
More information about the llvm-commits
mailing list