[svn-r9988] Purpose:

Bug fix

Description:
pmake (on modi4, for instance) complains about undefined variables
if it is run without the -V flag, which turns those errors to warnings.

Solution:
Added test to configure.in to see if $MAKE will allow Makefiles
with undefined variables.  If not, sets -V flag in AM_MAKEFLAGS.
Ensured that all custom make targets use AM_MAKEFLAGS.
Also defined all variables that caused errors in top-level Makefile.am.
This means that pmake can be used to build hdf5 *from the top level
only*.  To run make from a subdirectory, still need to use -V flag
(or use make or gmake).

Platforms tested:
modi4, heping, copper, sleipnir
This commit is contained in:
James Laird
2005-02-11 12:40:52 -05:00
parent 54f376edbb
commit 3f0a35a4ea
56 changed files with 367 additions and 724 deletions

View File

@@ -34,24 +34,24 @@ DIST_SUBDIRS=src test testpar examples
# Clean and mostlyclean need to recurse into examples directory
clean-local:
if test -f examples/Makefile; then \
(cd examples && $(MAKE) clean) || exit 1; \
if test -f examples/Makefile; then \
(cd examples && $(MAKE) $(AM_MAKEFLAGS) clean) || exit 1; \
fi;
mostlyclean-local:
if test -f examples/Makefile; then \
(cd examples && $(MAKE) mostlyclean) || exit 1; \
if test -f examples/Makefile; then \
(cd examples && $(MAKE) $(AM_MAKEFLAGS) mostlyclean) || exit 1; \
fi;
# Install examples
install-examples uninstall-examples:
(cd examples && $(MAKE) $@) || exit 1;
(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
# Check that examples can be successfully built
check-install:
$(MAKE) installcheck
$(MAKE) $(AM_MAKEFLAGS) installcheck
installcheck-local:
(cd examples && $(MAKE) $@) || exit 1;
(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
include $(top_srcdir)/config/conclude.am