aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-23 05:59:53 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-23 05:59:53 +0000
commit1b426abbbdbf47247007b807ea7ee8d24211522a (patch)
treeecf7a71562c9f439ca9ebe916bef42d94863a082
parent163393732a9a781b6b057c39ee6b1e0c96b9d199 (diff)
Allow configuration files to be themselves configured and found in the
OBJ dir instead of only in the SRC dir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18143 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.rules8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 1438f91694..a05a8d5b0a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -432,7 +432,13 @@ ifdef CONFIG_FILES
install-local:: $(sysconfdir) $(CONFIG_FILES)
$(Echo) Installing Configuration Files To $(sysconfdir)
$(Verb)for file in $(CONFIG_FILES); do \
- $(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
+ if test -f $(BUILD_OBJ_DIR)/$${file} ; then \
+ $(INSTALL) $(BUILD_OBJ_DIR)/$${file} $(sysconfdir) ; \
+ elif test -f $(BUILD_SRC_DIR)/$${file} ; then \
+ $(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
+ else \
+ $(ECHO) Error: cannot find config file $${file}. ; \
+ fi \
done
uninstall-local::