* install the default hostfile and mca params files only if there isn't
already one there. Credit to Jeff from LAM for the code This commit was SVN r3611.
Этот коммит содержится в:
родитель
89b6b3b66a
Коммит
fde966be5f
@ -4,7 +4,25 @@
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
EXTRA_DIST = $(sysconf_DATA)
|
||||
EXTRA_DIST = \
|
||||
openmpi-default-hostfile \
|
||||
openmpi-mca-params.conf
|
||||
|
||||
sysconf_DATA = openmpi-mca-params.conf \
|
||||
openmpi-default-hostfile
|
||||
# Steal a little trickery from a generated Makefile to only install
|
||||
# lam-bhost.def if one does not already exist at the target.
|
||||
|
||||
install-data-local:
|
||||
@ p="openmpi-mca-params.conf openmpi-default-hostfile"; \
|
||||
for file in $$p; do \
|
||||
if test -f $(DESTDIR)$(sysconfdir)/$$file; then \
|
||||
echo "******************************* WARNING ************************************"; \
|
||||
echo "*** Not installing new $$file over existing file in:"; \
|
||||
echo "*** $(DESTDIR)$(sysconfdir)/$$file"; \
|
||||
echo "******************************* WARNING ************************************"; \
|
||||
else \
|
||||
if test -f "$$file"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f="`echo $$file | sed -e 's|^.*/||'`"; \
|
||||
echo " $(INSTALL_DATA) $$d$$file $(DESTDIR)$(sysconfdir)/$$f"; \
|
||||
$(INSTALL_DATA) $$d$$file $(DESTDIR)$(sysconfdir)/$$f; \
|
||||
fi; \
|
||||
done
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user