diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-09 21:36:19 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-09 21:36:19 +0000 |
commit | 4f7a8cf8c2fed7ffc1121888a0cfa3cb0e115a2d (patch) | |
tree | 115139306fd336fe128f9e653dd9e77cded957d0 | |
parent | cc650b615d548eb213b8ef44101258c518cb3326 (diff) |
If the source tree's Makefile is more up-to-date, copy it over into the build
tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9836 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index af0c021234..4702534f26 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -816,6 +816,12 @@ $(LLVM_OBJ_ROOT)/config.status:: $(LLVM_SRC_ROOT)/configure @${ECHO} "****************************************************************" $(VERB) exit 1 +# If the Makefile in the source tree has been updated, copy it over into the +# build tree. +Makefile :: $(BUILD_SRC_DIR)/Makefile + @${ECHO} "===== Makefile out of date, updating from source dir: `dirname $<` =====" + cp -f $< $@ + # # Include dependencies generated from C/C++ source files, but not if we # are cleaning (this example taken from the GNU Make Manual). |