[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

@@ -25,12 +25,6 @@
# reinvokes make in the various subdirectories.
# You can alternatively invoke make from each subdirectory manually.
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -90,6 +84,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -450,16 +445,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Don't include conclude, since the docs directory doesn't need to know how to
# build anything.

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -349,16 +344,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -347,16 +342,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -347,16 +342,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -25,12 +25,6 @@
# reinvokes make in the various subdirectories.
# You can alternatively invoke make from each subdirectory manually.
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -90,6 +84,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -497,16 +492,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -322,16 +317,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# This makefile does nothing; there are no files to install.
# Tell versions [3.59,3.63) of GNU make to not export all variables.

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -356,16 +351,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -355,16 +350,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -478,16 +473,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -390,16 +385,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -347,16 +342,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -351,16 +346,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -350,16 +345,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -21,12 +21,6 @@
# All rights reserved.
#
#
#------------------------------------------------------------ -*- makefile -*-
# The following section of this makefile comes from the
# `./config/commence' file which was generated with config.status
# from `./config/commence.in'.
#-----------------------------------------------------------------------------
SHELL = @SHELL@
srcdir = @srcdir@
@@ -86,6 +80,7 @@ AUTOMAKE = /usr/bin/automake
AUTOHEADER = /usr/local/autoconf-2.59/bin/autoheader
ADD_PARALLEL_FILES = @ADD_PARALLEL_FILES@
AMTAR = @AMTAR@
AM_MAKEFLAGS = @AM_MAKEFLAGS@
AR = @AR@
AS = @AS@
AWK = @AWK@
@@ -347,16 +342,16 @@ lib progs check test _test:
tests dep depend:
@@SETX@; for d in X $(SUBDIRS); do \
if test $$d != X; then \
(cd $$d && $(MAKE) $@) || exit 1; \
if test $$d != X; then \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
fi;
done
# In docs directory, install-doc is the same as install
install-doc install-all:
$(MAKE) install
$(MAKE) $(AM_MAKEFLAGS) install
uninstall-doc uninstall-all:
$(MAKE) uninstall
$(MAKE) $(AM_MAKEFLAGS) uninstall
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: