ed56e743b7
AM_INIT_AUTOMAKE, instead of the deprecated version. * Work around dumbness in modern AC_INIT that requires the version number to be set at autoconf time (instead of at configure time, as it was before). Set the version number, minus the subversion r number, at autoconf time. Override the internal variables to include the r number (if needed) at configure time. Basically, the right thing should always happen. The only place it might not is the version reported as part of configure --help will not have an r number. * Since AM_INIT_AUTOMAKE taks a list of options, no need to specify them in all the Makefile.am files. * Addes support for subdir-objects, meaning that object files are put in the directory containing source files, even if the Makefile.am is in another directory. This should start making it feasible to reduce the number of Makefile.am files we have in the tree, which will greatly reduce the time to run autogen and configure. This commit was SVN r7211.
66 строки
2.3 KiB
Makefile
66 строки
2.3 KiB
Makefile
#
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
# All rights reserved.
|
|
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
# All rights reserved.
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
# All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
|
|
|
|
ompi_config_files = \
|
|
openmpi-default-hostfile \
|
|
openmpi-mca-params.conf \
|
|
openmpi-totalview.tcl
|
|
|
|
EXTRA_DIST = $(ompi_config_files)
|
|
|
|
# This has to be here, even though it's empty, so that AM thinks that
|
|
# "something" will happen here (details fuzzy, but we remember that this
|
|
# *needs* to be here -- you have been warned).
|
|
|
|
sysconf_DATA =
|
|
|
|
# Steal a little trickery from a generated Makefile to only install
|
|
# files if they do not already exist at the target.
|
|
|
|
install-data-local:
|
|
@ p="$(ompi_config_files)"; \
|
|
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
|
|
|
|
# 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:
|
|
@ p="$(ompi_config_files)"; \
|
|
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
|