From 0f91b587f4a22afeb673af6882226c2d20ae96a6 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 18 Feb 2000 21:39:46 -0500 Subject: [svn-r1979] Purpose: Feature "improvement". Problem: The Makefile target triggers gmake to redo the whole auto-configure process if it sees any autoconfigure related files changed. It causes couple problems. One is that when multiple machines using --srcdir are running make, they may detect the changes and launch the autoconf at the same time. These end up as multiple hosts updating the same srcdir area together--bad things can happen. Another one is that when one modifies some Makefile.in, then try "make distclean" before launching the configure process. Instead of cleaning things, it started a configure, recreate all Makefiles and other files, then finally come around to do the distclean--who knows what it cleans by now since the Makefile is changed too. Last problem was that this auto-process will launch even for command "gmake -n ...". Solution: Renamed Makefile target to reconfigure so that the auto-checking is still available but must be launched explicitedly. If one wishes to have the auto-checking as default, one may do alias gmake "\gmake -i reconfigure; gmake \!* ". --- config/commence.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/commence.in b/config/commence.in index 23b2284..3a43cb8 100644 --- a/config/commence.in +++ b/config/commence.in @@ -76,6 +76,7 @@ all: ## keep track of the most recent update of H5config.h.in and H5config.h ## because autoheader and config.status don't update the modification time ## if the contents don't change. +## Invoke it by "gmake reconfigure". ## ## Graphically, the dependencies are: ## @@ -132,7 +133,8 @@ $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_builddir)/config.status: $(top_srcdir)/configure $(STAMP1) -cd $(top_builddir); ./config.status --recheck -Makefile: $(MAKEFILE_PARTS) $(STAMP2) +# rerun the autoconf process if any configure components have changed. +reconfigure: $(MAKEFILE_PARTS) $(STAMP2) -cd $(top_builddir); CONFIG_HEADERS= ./config.status ##----------------------------------------------------------------------------- -- cgit v0.12