This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ian Lance Taylor <iant@google.com>] PATCH RFA: Remove prev-DIR/Makefile to force reconfigure


A ping for this simple patch.  Paolo said it looked good to him, but
that was before he became a build system maintainer.  Paolo, do you
want to approve it for real now?

Thanks.

Ian

--- Begin Message ---
There is code in the top level configure.in file to force
subdirectories to be reconfigured by removing DIR/Makefile.  That code
handles stage*-DIR.  However, if you have completed a bootstrap, the
directories will be named stage1-DIR and prev-DIR.  In order to
properly force a reconfigure, prev-DIR/Makefile needs to be removed
also.

This patch does that.  Tested by running configure.  OK for mainline?
I will commit to src after approved for gcc.

Ian


2006-12-13  Ian Lance Taylor  <iant@google.com>

	* configure.in: When removing Makefiles to force a reconfigure, also
	remove prev-DIR*/Makefile.
	* configure: Regenerate.


Index: configure.in
===================================================================
--- configure.in	(revision 119766)
+++ configure.in	(working copy)
@@ -1896,7 +1896,7 @@ for module in ${build_configdirs} ; do
 done
 for module in ${configdirs} ; do
   if test -z "${no_recursion}"; then
-    for file in stage*-${module}/Makefile ${module}/Makefile; do
+    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
       if test -f ${file}; then
 	echo 1>&2 "*** removing ${file} to force reconfigure"
 	rm -f ${file}



--- End Message ---

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]