[llvm-commits] CVS: llvm/Makefile.rules

John Criswell criswell at cs.uiuc.edu
Tue Oct 7 09:17:01 PDT 2003


Changes in directory llvm:

Makefile.rules updated: 1.142 -> 1.143

---
Log message:

Added targets that force users to re-run autoconf when the script has been
updated.



---
Diffs of the changes:  (+0 -0)

Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.142 llvm/Makefile.rules:1.143
--- llvm/Makefile.rules:1.142	Thu Oct  2 14:02:02 2003
+++ llvm/Makefile.rules	Tue Oct  7 09:16:44 2003
@@ -58,6 +58,9 @@
 #	building.
 ###########################################################################
 
+# Ensure people re-run configure when it gets updated
+all::$(LLVM_OBJ_ROOT)/include/Config/config.h
+
 ifdef SHARED_LIBRARY
 # if SHARED_LIBRARY is specified, the default is to build the dynamic lib
 all:: dynamic
@@ -773,6 +776,14 @@
 # Create dependencies for the *.c files...
 $(BUILD_OBJ_DIR)/Depend/%.d: %.c $(BUILD_OBJ_DIR)/Depend/.dir
 	$(VERB) $(DependC) -o $@ $< | $(SED) 's|\.o|\.lo|' | $(SED) 's|$*\.lo *|$(BUILD_OBJ_DIR)/Release/& $(BUILD_OBJ_DIR)/Profile/& $(BUILD_OBJ_DIR)/Debug/& $(BUILD_OBJ_DIR)/Depend/$(@F)|g' > $@
+
+#
+# Autoconf Dependencies.
+#
+$(LLVM_OBJ_ROOT)/include/Config/config.h:: $(LLVM_SRC_ROOT)/configure
+	@${ECHO} "You need to re-run $(LLVM_SRC_ROOT)/configure"
+	@${ECHO} "inside the directory $(LLVM_OBJ_ROOT)"
+	$(VERB) exit 1
 
 #
 # Include dependencies generated from C/C++ source files, but not if we





More information about the llvm-commits mailing list