1
1
openmpi/etc/Makefile.am
Brian Barrett 5ee42c2a58 * correct the installation paths of a bunch of headers
* make sure to install the libevent header
* make Automake create the sysconf_DATA directory before trying to
  install the config files

This commit was SVN r3614.
2004-11-18 03:53:42 +00:00

31 строка
1005 B
Makefile

#
# $HEADER$
#
include $(top_srcdir)/config/Makefile.options
EXTRA_DIST = \
openmpi-default-hostfile \
openmpi-mca-params.conf
sysconf_DATA =
# 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