This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: Remove config.cache files when reconfiguring at top level


Hi Alfred, Hi Andreas,

      4. User runs make distclean.
	There are no Makefiles present in the sub-directories so
	the config.cache files are left intact.

That seems like a bug, distclean should clean out everything not
suitable for distribution, so config.cache files should definition not
stay distclean.

So clean them here.  That's the only correct place to do it.  Only
distclean is allowed to remove configuration-recording files.

OK - so what do you guys think to this patch ? (Presuming that I also revert my patch to configure.ac).


Cheers
  Nick

ChangeLog
2010-02-16  Nick Clifton  <nickc@redhat.com>

	PR 11238
	* Makefile.tpl (local-distclean): Also remove config.cache files in
	sub-directories as there may not be Makefiles present in the
	sub-directories.

Index: Makefile.tpl
===================================================================
RCS file: /cvs/src/src/Makefile.tpl,v
retrieving revision 1.214
diff -c -3 -p -r1.214 Makefile.tpl
*** Makefile.tpl 22 Jan 2010 16:28:24 -0000 1.214
--- Makefile.tpl 16 Feb 2010 12:37:35 -0000
*************** local-distclean:
*** 771,776 ****
--- 771,777 ----
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+ -find . -name config.cache -exec rm -f {} \; 2>/dev/null


  local-maintainer-clean:
        @echo "This command is intended for maintainers to use;"


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