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
This commit is contained in:
Reid Spencer 2004-11-23 05:59:53 +00:00
parent 163393732a
commit 1b426abbbd

View File

@ -432,7 +432,13 @@ ifdef CONFIG_FILES
install-local:: $(sysconfdir) $(CONFIG_FILES) install-local:: $(sysconfdir) $(CONFIG_FILES)
$(Echo) Installing Configuration Files To $(sysconfdir) $(Echo) Installing Configuration Files To $(sysconfdir)
$(Verb)for file in $(CONFIG_FILES); do \ $(Verb)for file in $(CONFIG_FILES); do \
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) ; \ $(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
else \
$(ECHO) Error: cannot find config file $${file}. ; \
fi \
done done
uninstall-local:: uninstall-local::