2005-02-01 11:17:02 +08:00
|
|
|
#
|
2007-02-08 06:28:58 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-02-01 11:17:02 +08:00
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2017-04-18 03:32:16 +08:00
|
|
|
# the COPYING file, which can be found at the root of the source code
|
|
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
2005-02-01 11:17:02 +08:00
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
#
|
|
|
|
# Top-level HDF5-C++ Makefile(.in)
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
[svn-r10587] Purpose:
Minor feature
Description:
If a user configures without C++ or Fortran, 'make' will not recurse into
c++ or fortran directories. However, if the user cd's into these
directories and 'makes,' the Makefiles will attempt to build interfaces
that have not been configured, usually failing.
In an unrelated but minor change, src/H5detect should be compiled with
the -g flag to disable compiler optimizations since it is only
executed once.
Solution:
Make it harder for users to try to compile interfaces that have not been
configured by making c++, fortran, and hl directories not recurse into
their subdirectories unless they have been configured.
Thus, 'make' in /fortran/src will break if Fortran has not been configured,
but 'make' in /fortran will not break.
Platforms tested:
mir, modi4, copper
Misc. update:
2005-04-12 05:47:05 +08:00
|
|
|
## Only recurse into subdirectories if C++ interface is enabled.
|
|
|
|
if BUILD_CXX_CONDITIONAL
|
|
|
|
SUBDIRS=src test
|
|
|
|
endif
|
2005-04-19 23:13:40 +08:00
|
|
|
DIST_SUBDIRS = src test examples
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Install examples
|
|
|
|
install-examples uninstall-examples:
|
2005-08-02 06:22:55 +08:00
|
|
|
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
installcheck-local:
|
2005-08-02 06:22:55 +08:00
|
|
|
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2006-03-23 22:22:34 +08:00
|
|
|
# Clean examples when check-clean is invoked
|
|
|
|
check-clean ::
|
|
|
|
@$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1;
|
|
|
|
@for d in X $(SUBDIRS) examples; do \
|
|
|
|
if test $$d != X && test $$d != .; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|