Depend on config.status instead of config.h, because config.h timestamp may not
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 7 Oct 2003 15:24:23 +0000 (15:24 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 7 Oct 2003 15:24:23 +0000 (15:24 +0000)
change even though configure changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8923 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 33205b2e0af10e2a7bcefb10fc6b82fe6f7168ff..278df674dfcfdd71b1e2361007e34c1f10757944 100644 (file)
@@ -59,7 +59,7 @@ VPATH=$(SourceDir)
 ###########################################################################
 
 # Ensure people re-run configure when it gets updated
-all::$(LLVM_OBJ_ROOT)/include/Config/config.h
+all::$(LLVM_OBJ_ROOT)/config.status
 
 ifdef SHARED_LIBRARY
 # if SHARED_LIBRARY is specified, the default is to build the dynamic lib
@@ -780,7 +780,7 @@ $(BUILD_OBJ_DIR)/Depend/%.d: %.c $(BUILD_OBJ_DIR)/Depend/.dir
 #
 # Autoconf Dependencies.
 #
-$(LLVM_OBJ_ROOT)/include/Config/config.h:: $(LLVM_SRC_ROOT)/configure
+$(LLVM_OBJ_ROOT)/config.status:: $(LLVM_SRC_ROOT)/configure
        @${ECHO} "You need to re-run $(LLVM_SRC_ROOT)/configure"
        @${ECHO} "inside the directory $(LLVM_OBJ_ROOT)"
        $(VERB) exit 1