2004-08-30 14:44:30 +04:00
|
|
|
#
|
2005-11-05 22:57:48 +03:00
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2008-06-04 05:28:03 +04:00
|
|
|
# Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
2004-08-30 14:44:30 +04:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
orte_config_files = \
|
|
|
|
openmpi-default-hostfile
|
2004-08-31 13:49:56 +04:00
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
EXTRA_DIST = $(orte_config_files)
|
2005-08-24 19:48:32 +04:00
|
|
|
|
2004-11-18 03:55:03 +03:00
|
|
|
# Steal a little trickery from a generated Makefile to only install
|
2008-06-04 05:28:03 +04:00
|
|
|
# files if they do not already exist at the target. Be sure to read
|
|
|
|
# thread starting here
|
|
|
|
# (http://www.open-mpi.org/community/lists/devel/2008/06/4080.php) for
|
|
|
|
# details why the mkdir is in install-data-local.
|
2004-11-18 03:55:03 +03:00
|
|
|
|
|
|
|
install-data-local:
|
2008-06-04 05:28:03 +04:00
|
|
|
$(mkdir_p) $(DESTDIR)$(sysconfdir)
|
2006-02-12 04:33:29 +03:00
|
|
|
@ p="$(orte_config_files)"; \
|
2004-11-18 03:55:03 +03:00
|
|
|
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
|
2005-04-13 00:56:29 +04:00
|
|
|
|
|
|
|
# Only remove if exactly the same as what in our tree
|
|
|
|
# NOTE TO READER: Bourne shell if ... fi evaluates the body if
|
|
|
|
# the return of the evaluted command is 0 (as opposed to non-zero
|
|
|
|
# as used by everyone else)
|
|
|
|
uninstall-local:
|
2006-02-12 04:33:29 +03:00
|
|
|
@ p="$(orte_config_files)"; \
|
2005-04-13 00:56:29 +04:00
|
|
|
for file in $$p; do \
|
|
|
|
if test -f "$(DESTDIR)$(sysconfdir)/$$file"; then \
|
|
|
|
if test -f "$$file"; then d=; else d="$(srcdir)/"; fi; \
|
|
|
|
if diff "$(DESTDIR)$(sysconfdir)/$$file" "$$d$$file" > /dev/null 2>&1 ; then \
|
|
|
|
echo "rm -f $(DESTDIR)$(sysconfdir)/$$file" ; \
|
|
|
|
rm -f "$(DESTDIR)$(sysconfdir)/$$file" ; \
|
|
|
|
fi ; \
|
|
|
|
fi ; \
|
|
|
|
done
|