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]

Patch to remove extraclean targets


The gcc directory has an "extraclean" target, not one of the standard
GNU targets, which is supposed to "Delete anything likely to be found
in the source directory that shouldn't be in the distribution.".  This
isn't any longer useful, (a) because distributions are built from CVS,
not from working source trees, (b) in any case, it deletes from the
build directory, and building in the source directory is rare,
certainly for anyone working on GCC in such as way as might create
such files.  Accordingly, this patch removes that target and the
corresponding front end makefile hook (maintainers of front ends
outside the GCC tree or not on CVS mainline should take note).

(libobjc/makefile.dos also has an extraclean target.  That file hasn't
had any substantive changes for a long time and may well no longer be
of any use.)

Boostrapped with no regressions on i686-pc-linux-gnu.  OK to commit?

gcc:
2003-11-16  Joseph S. Myers  <jsm@polyomino.org.uk>

	* Makefile.in (extraclean): Delete.
	* configure.in (target_list): Remove extraclean.
	* configure: Regenerate.
	* doc/makefile.texi, doc/sourcebuild.texi: Update.
	* objc/Make-lang.in (objc.extraclean): Delete.

gcc/ada:
2003-11-16  Joseph S. Myers  <jsm@polyomino.org.uk>

	* Make-lang.in (ada.extraclean): Delete.

gcc/cp:
2003-11-16  Joseph S. Myers  <jsm@polyomino.org.uk>

	* Make-lang.in (c++.extraclean): Delete.

gcc/f:
2003-11-16  Joseph S. Myers  <jsm@polyomino.org.uk>

	* Make-lang.in (f77.extraclean): Delete.

gcc/java:
2003-11-16  Joseph S. Myers  <jsm@polyomino.org.uk>

	* Make-lang.in (java.extraclean): Delete.

gcc/treelang:
2003-11-16  Joseph S. Myers  <jsm@polyomino.org.uk>

	* Make-lang.in (treelang.extraclean): Delete.

diff -ruN GCC.orig/gcc/Makefile.in GCC/gcc/Makefile.in
--- GCC.orig/gcc/Makefile.in	2003-11-15 10:50:35.000000000 +0000
+++ GCC/gcc/Makefile.in	2003-11-15 22:37:23.000000000 +0000
@@ -940,7 +940,7 @@
 # all.cross, start.encap, rest.encap,
 # install-normal, install-common, install-info, install-man,
 # uninstall,
-# mostlyclean, clean, distclean, extraclean, maintainer-clean,
+# mostlyclean, clean, distclean, maintainer-clean,
 # stage1, stage2, stage3, stage4
 #
 # Each language is linked in with a series of hooks.  The name of each
@@ -2846,24 +2846,6 @@
 	-if [ ! -f po/exgettext ]; then rm -f po/*.gmo; fi
 	-rmdir ada cp f java objc fixinc intl po testsuite 2>/dev/null
 
-# Delete anything likely to be found in the source directory
-# that shouldn't be in the distribution.
-extraclean: distclean lang.extraclean
-	-rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~*
-	-rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej
-	-rm -f config/*/=* config/*/"#"* config/*/*~*
-	-rm -f config/*/*.orig config/*/*.rej
-	-rm -f *.dvi *.ps *.oaux *.d *.[zZ] *.gz
-	-rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs
-	-rm -f *lose config/*lose config/*/*lose
-	-rm -f *.s *.s[0-9] *.i config/ChangeLog
-	-rm -f y.tab.c yacc.*
-	-rm -f */=* */"#"* */*~*
-	-rm -f */patch* */*.orig */*.rej
-	-rm -f */*.dvi */*.oaux */*.d */*.[zZ] */*.gz
-	-rm -f */*.tar */*.xtar */*diff */*.diff.* */*.tar.* */*.xtar.* */*diffs
-	-rm -f */*lose */*.s */*.s[0-9] */*.i
-
 # Get rid of every file that's generated from some other file, except for `configure'.
 # Most of these files ARE PRESENT in the GCC distribution.
 maintainer-clean:
diff -ruN GCC.orig/gcc/ada/Make-lang.in GCC/gcc/ada/Make-lang.in
--- GCC.orig/gcc/ada/Make-lang.in	2003-11-15 10:50:36.000000000 +0000
+++ GCC/gcc/ada/Make-lang.in	2003-11-15 22:37:52.000000000 +0000
@@ -24,7 +24,7 @@
 #
 # foo.all.cross, foo.start.encap, foo.rest.encap,
 # foo.install-normal, foo.install-common, foo.install-man,
-# foo.uninstall, foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
+# foo.uninstall, foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
 # where `foo' is the name of the language.
@@ -911,7 +911,6 @@
 	-$(RMDIR) ada/rts
 	-$(RM) ada/tools/*
 	-$(RMDIR) ada/tools
-ada.extraclean:
 ada.maintainer-clean:
 	-$(RM) ada/a-sinfo.h
 	-$(RM) ada/a-einfo.h
diff -ruN GCC.orig/gcc/configure.in GCC/gcc/configure.in
--- GCC.orig/gcc/configure.in	2003-11-01 10:16:23.000000000 +0000
+++ GCC/gcc/configure.in	2003-11-15 22:40:09.000000000 +0000
@@ -2866,7 +2866,7 @@
 target_list="all.build all.cross start.encap rest.encap tags \
 	install-normal install-common install-man \
 	uninstall \
-	mostlyclean clean distclean extraclean maintainer-clean \
+	mostlyclean clean distclean maintainer-clean \
 	stage1 stage2 stage3 stage4 stageprofile stagefeedback"
 for t in $target_list
 do
diff -ruN GCC.orig/gcc/cp/Make-lang.in GCC/gcc/cp/Make-lang.in
--- GCC.orig/gcc/cp/Make-lang.in	2003-11-14 23:44:15.000000000 +0000
+++ GCC/gcc/cp/Make-lang.in	2003-11-15 22:38:03.000000000 +0000
@@ -25,7 +25,7 @@
 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
 # foo.install-normal, foo.install-common, foo.install-man,
 # foo.uninstall,
-# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
+# foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
 # where `foo' is the name of the language.
@@ -199,7 +199,6 @@
 c++.clean:
 c++.distclean:
 	-rm -f cp/config.status cp/Makefile
-c++.extraclean:
 c++.maintainer-clean:
 #
 # Stage hooks:
diff -ruN GCC.orig/gcc/doc/makefile.texi GCC/gcc/doc/makefile.texi
--- GCC.orig/gcc/doc/makefile.texi	2003-10-04 07:34:33.000000000 +0000
+++ GCC/gcc/doc/makefile.texi	2003-11-15 22:36:26.000000000 +0000
@@ -1,4 +1,4 @@
-@c Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+@c Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 @c This is part of the GCC manual.
 @c For copying conditions, see the file gcc.texi.
 
@@ -26,9 +26,6 @@
 @item distclean
 That, and all the files created by @command{configure}.
 
-@item extraclean
-That, and any temporary or intermediate files, like emacs backup files.
-
 @item maintainer-clean
 Distclean plus any file that can be generated from other files.  Note
 that additional tools may be required beyond what is normally needed to
diff -ruN GCC.orig/gcc/doc/sourcebuild.texi GCC/gcc/doc/sourcebuild.texi
--- GCC.orig/gcc/doc/sourcebuild.texi	2003-11-14 23:44:15.000000000 +0000
+++ GCC/gcc/doc/sourcebuild.texi	2003-11-15 22:36:51.000000000 +0000
@@ -600,14 +600,11 @@
 @item mostlyclean
 @itemx clean
 @itemx distclean
-@itemx extraclean
 @itemx maintainer-clean
-Except for @code{extraclean}, the language parts of the standard GNU
+The language parts of the standard GNU
 @samp{*clean} targets. @xref{Standard Targets, , Standard Targets for
 Users, standards, GNU Coding Standards}, for details of the standard
-targets.  @code{extraclean} does @code{distclean} and also deletes
-anything likely to be found in the source directory that shouldn't be
-in the distribution.  For GCC, @code{maintainer-clean} should delete
+targets.  For GCC, @code{maintainer-clean} should delete
 all generated files in the source directory that are not checked into
 CVS, but should not delete anything checked into CVS@.
 @item stage1
diff -ruN GCC.orig/gcc/f/Make-lang.in GCC/gcc/f/Make-lang.in
--- GCC.orig/gcc/f/Make-lang.in	2003-11-14 23:44:15.000000000 +0000
+++ GCC/gcc/f/Make-lang.in	2003-11-15 22:38:22.000000000 +0000
@@ -24,7 +24,7 @@
 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
 # foo.install-normal, foo.install-common, foo.install-man,
 # foo.uninstall,
-# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
+# foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
 # where `foo' is the name of the language.
@@ -61,7 +61,7 @@
   f77.install-normal \
   f77.install-common f77.install-man \
   f77.uninstall f77.mostlyclean f77.clean f77.distclean \
-  f77.extraclean f77.maintainer-clean f77.rebuilt \
+  f77.maintainer-clean f77.rebuilt \
   f77.stage1 f77.stage2 f77.stage3 f77.stage4 \
   f77.stageprofile f77.stagefeedback
 
@@ -309,7 +309,6 @@
 	-rm -f g77spec.o
 f77.distclean:
 	-rm -f f/Makefile
-f77.extraclean:
 f77.maintainer-clean:
 	-rm -f f/g77.info* f/g77.*aux f/TAGS f/BUGS f/NEWS f/intdoc.texi
 #
diff -ruN GCC.orig/gcc/java/Make-lang.in GCC/gcc/java/Make-lang.in
--- GCC.orig/gcc/java/Make-lang.in	2003-11-14 23:44:15.000000000 +0000
+++ GCC/gcc/java/Make-lang.in	2003-11-15 22:38:35.000000000 +0000
@@ -29,7 +29,7 @@
 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
 # foo.install-normal, foo.install-common, foo.install-man,
 # foo.uninstall,
-# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
+# foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
 # where `foo' is the name of the language.
@@ -226,7 +226,6 @@
 java.distclean:
 	-rm -f java/config.status java/Makefile
 	-rm -f java/parse.output
-java.extraclean:
 java.maintainer-clean:
 	-rm -f $(parsedir)/java/parse.c $(parsedir)/java/parse-scan.c java/parse.output java/y.tab.c
 	-rm -f $(docobjdir)/gcj.1 $(docobjdir)/gcjh.1
diff -ruN GCC.orig/gcc/objc/Make-lang.in GCC/gcc/objc/Make-lang.in
--- GCC.orig/gcc/objc/Make-lang.in	2003-11-14 23:44:15.000000000 +0000
+++ GCC/gcc/objc/Make-lang.in	2003-11-15 22:38:56.000000000 +0000
@@ -25,7 +25,7 @@
 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
 # foo.install-normal, foo.install-common, foo.install-man,
 # foo.uninstall,
-# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
+# foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
 # where `foo' is the name of the language.
@@ -131,7 +131,6 @@
 	-rm -f objc/Makefile objc/Make-host objc/Make-target
 	-rm -f objc/config.status objc/config.cache
 	-rm -f objc-parse.output
-objc.extraclean:
 objc.maintainer-clean:
 	-rm -f $(parsedir)/objc/objc-parse.y
 	-rm -f $(parsedir)/objc/objc-parse.c $(parsedir)/objc/objc-parse.output
diff -ruN GCC.orig/gcc/treelang/Make-lang.in GCC/gcc/treelang/Make-lang.in
--- GCC.orig/gcc/treelang/Make-lang.in	2003-11-14 23:44:15.000000000 +0000
+++ GCC/gcc/treelang/Make-lang.in	2003-11-15 22:39:22.000000000 +0000
@@ -26,7 +26,7 @@
 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
 # foo.install-normal, foo.install-common, foo.install-man,
 # foo.uninstall, foo.distdir,
-# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
+# foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
 # where `foo' is the name of the language.
@@ -233,9 +233,7 @@
 	-rm -f treelang/config.status
 	-rm -f treelang/*.output
 
-treelang.extraclean: treelang.distclean
-
-treelang.maintainer-clean: treelang.extraclean
+treelang.maintainer-clean: treelang.distclean
 	for name in $(TREE_GENERATED); \
 	do \
 	  if [ -f $(srcdir)/treelang/$$name ] ; then \

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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