Blame test/mpi/Makefile.am

Packit Service c5cf8c
# -*- Mode: Makefile; -*-
Packit Service c5cf8c
# vim: set ft=automake :
Packit Service c5cf8c
#
Packit Service c5cf8c
# (C) 2011 by Argonne National Laboratory.
Packit Service c5cf8c
#     See COPYRIGHT in top-level directory.
Packit Service c5cf8c
#
Packit Service c5cf8c
Packit Service c5cf8c
# mix in the "make testing" rule and other boilerplate
Packit Service c5cf8c
include $(top_srcdir)/Makefile.mtest
Packit Service c5cf8c
Packit Service c5cf8c
ACLOCAL_AMFLAGS = -I confdb
Packit Service c5cf8c
Packit Service c5cf8c
static_subdirs = util attr basic datatype coll comm errhan group info init \
Packit Service c5cf8c
                 pt2pt rma topo errors manual perf mpi_t impls ckpoint ft dtpools
Packit Service c5cf8c
all_lang_subdirs = f77 cxx f90 f08
Packit Service c5cf8c
Packit Service c5cf8c
# DIST_SUBDIRS must be a superset of SUBDIRS, and automake must be able to
Packit Service c5cf8c
# *statically* compute its contents.  The good news is that we can mostly avoid
Packit Service c5cf8c
# duplication because automake is able to "see" into simple variable
Packit Service c5cf8c
# assignments that are not driven by a configure @-substitution variable.
Packit Service c5cf8c
DIST_SUBDIRS = $(static_subdirs) io $(all_lang_subdirs) threads spawn .
Packit Service c5cf8c
SUBDIRS      = $(static_subdirs) $(iodir) $(otherlangs) $(threadsdir) $(spawndir) $(ckpointdir) $(ftdir) .
Packit Service c5cf8c
Packit Service c5cf8c
EXTRA_DIST = maint/common.defn maint/f77tof90 maint/testmerge.in maint/updatefiles testlist.in
Packit Service c5cf8c
Packit Service c5cf8c
DISTCLEANFILES = config.system
Packit Service c5cf8c
Packit Service c5cf8c
## here are automakefile entries for the test/mpi/include dir
Packit Service c5cf8c
noinst_HEADERS = include/mpitest.h include/mpicolltest.h include/mpitestcxx.h include/mpithreadtest.h include/dtypes.h rma/squelch.h errors/rma/win_sync.h
Packit Service c5cf8c
nodist_noinst_HEADERS = include/mpitestconf.h
Packit Service c5cf8c
Packit Service c5cf8c
# Need to patch some things up:
Packit Service c5cf8c
# Make sure to disable rebuilding the autotools related files - the
Packit Service c5cf8c
# receiver of this distribution may not have the necessary tools and
Packit Service c5cf8c
# should not need them.  Finally, the distributed configure must disable
Packit Service c5cf8c
# maintainer targets by default - otherwise, the unsuspecting user will
Packit Service c5cf8c
# see automake et al attempt to rebuild the autotools, which is likely to
Packit Service c5cf8c
# fail unless the user has the correct versions of all of the tools
Packit Service c5cf8c
dist-hook:
Packit Service c5cf8c
	cd $(distdir) && \
Packit Service c5cf8c
	    sed -e 's/AM_MAINTAINER_MODE.*/AM_MAINTAINER_MODE([disable])/' \
Packit Service c5cf8c
	        configure.ac > conftmp.ac && mv conftmp.ac configure.ac
Packit Service c5cf8c
	cd $(distdir) && $(AUTOMAKE) --add-missing
Packit Service c5cf8c
	cd $(distdir) && $(AUTOMAKE) --foreign
Packit Service c5cf8c
	cd $(distdir) && $(ACLOCAL) -Iconfdb
Packit Service c5cf8c
	cd $(distdir) && $(AUTOCONF) -Iconfdb
Packit Service c5cf8c
	cd $(distdir) && $(AUTOHEADER) -Iconfdb