aboutsummaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-10-07 14:16:44 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-10-07 14:16:44 +0000
commitbd082800ec44049e72ab72fd6dd6b85ae9b814a3 (patch)
treed3dd4bff0d3209617adc930db8e3756ddc1a8d5e /Makefile.rules
parent5de0bac111fc9d4e290b9a743a02b866154c12e5 (diff)
Added targets that force users to re-run autoconf when the script has been
updated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9152f8edc6..33205b2e0a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -58,6 +58,9 @@ VPATH=$(SourceDir)
# 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
@@ -775,6 +778,14 @@ $(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
# are cleaning (this example taken from the GNU Make Manual).
#