2003-11-22 19:36:58 +03:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
2004-01-07 17:54:25 +03:00
|
|
|
# $HEADER$
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
|
|
|
|
2004-01-09 20:44:07 +03:00
|
|
|
include_HEADERS = \
|
|
|
|
lam_config.h \
|
|
|
|
lam_config_bottom.h \
|
|
|
|
mpi.h \
|
|
|
|
mpif.h
|
|
|
|
|
2003-12-22 19:29:21 +03:00
|
|
|
# Add a hook to run *after* the file lam_config.h has been installed
|
2003-11-22 19:36:58 +03:00
|
|
|
# out to the target location. It changes the pesky PACKAGE_* macros
|
|
|
|
# that autoconf automatically generates (and there is no way of
|
2004-01-07 17:54:25 +03:00
|
|
|
# turning off) into LAM_MPI_PACKAGE_* in order to make <mpi.h> safe to
|
2003-11-22 19:36:58 +03:00
|
|
|
# include with other files.
|
|
|
|
|
|
|
|
install-data-hook:
|
2004-01-07 10:51:23 +03:00
|
|
|
sed -e 's/define PACKAGE/define LAM_MPI_PACKAGE/' \
|
2003-12-22 19:29:21 +03:00
|
|
|
$(DESTDIR)$(includedir)/lam_config.h \
|
|
|
|
> $(DESTDIR)$(includedir)/lam_config.h.install
|
|
|
|
mv $(DESTDIR)$(includedir)/lam_config.h.install \
|
|
|
|
$(DESTDIR)$(includedir)/lam_config.h
|