forked from OSchip/llvm-project
Allow configuration files to be themselves configured and found in the
OBJ dir instead of only in the SRC dir. llvm-svn: 18143
This commit is contained in:
parent
1c95751676
commit
39d6a6116a
|
@ -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::
|
||||
|
|
Loading…
Reference in New Issue