* automake.in (do_one_clean_target): Don't hard code knowledge
authorAkim Demaille <akim@epita.fr>
Tue, 6 Feb 2001 09:08:56 +0000 (09:08 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 6 Feb 2001 09:08:56 +0000 (09:08 +0000)
about libtool, and maintainer-clean.
* clean.am, libtool.am: Handle these.

ChangeLog
Makefile.in
automake.in
clean.am
lib/am/clean.am
lib/am/libtool.am
libtool.am
m4/Makefile.in
tests/Makefile.in

index b9a815a..556f817 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-02-06  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (do_one_clean_target): Don't hard code knowledge
+       about libtool, and maintainer-clean.
+       * clean.am, libtool.am: Handle these.
+
+       
 2001-02-05  Akim Demaille  <akim@epita.fr>
 
        * automake.in (handle_texinfo): No longer hard code the clean
index 8c4530b..b51eef7 100644 (file)
@@ -576,6 +576,8 @@ distclean-generic:
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
 
 maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
        -rm -f Makefile.in
 mostlyclean-am:  mostlyclean-vti mostlyclean-aminfo mostlyclean-tags \
                mostlyclean-generic
@@ -596,8 +598,6 @@ distclean: distclean-recursive
 maintainer-clean-am:  maintainer-clean-vti maintainer-clean-aminfo \
                maintainer-clean-tags maintainer-clean-generic \
                distclean-am
-       @echo "This command is intended for maintainers to use;"
-       @echo "it deletes files that may require special tools to rebuild."
 
 maintainer-clean: maintainer-clean-recursive
        -rm -f config.status
index 40a4606..5083ffa 100755 (executable)
@@ -3975,20 +3975,6 @@ sub do_one_clean_target
     # Print the target and the dependencies.
     &pretty_print_rule ($name . 'clean-am: ', "\t\t", @deps);
 
-    # FIXME: shouldn't we really print these messages before running
-    # the dependencies?
-    if ($name eq 'maintainer-')
-    {
-       # Print a special warning.
-       $output_rules .=
-           ("\t\@echo \"This command is intended for maintainers to use;\"\n"
-            . "\t\@echo \"it deletes files that may require special "
-            . "tools to rebuild.\"\n");
-    }
-    elsif ($name eq 'dist')
-    {
-       $output_rules .= "\t-rm -f libtool\n" if $seen_libtool;
-    }
     $output_rules .= "\n";
 
     # Now generate the actual clean target.
index 2e84bc5..cfaa1d2 100644 (file)
--- a/clean.am
+++ b/clean.am
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -31,5 +31,9 @@ distclean-generic:
 DISTCLEAN      -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
 
 maintainer-clean-generic:
+## FIXME: shouldn't we really print these messages before running
+## the dependencies?
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
        -rm -f Makefile.in
 MAINTAINERCLEAN        -test -z "@MCFILES@" || rm -f @MFILES@
index 2e84bc5..cfaa1d2 100644 (file)
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -31,5 +31,9 @@ distclean-generic:
 DISTCLEAN      -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
 
 maintainer-clean-generic:
+## FIXME: shouldn't we really print these messages before running
+## the dependencies?
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
        -rm -f Makefile.in
 MAINTAINERCLEAN        -test -z "@MCFILES@" || rm -f @MFILES@
index ea17dfa..1a2f834 100644 (file)
@@ -23,5 +23,6 @@ clean-libtool:
        -rm -rf .libs _libs
 
 distclean-libtool:
+       -rm -f libtool
 
 maintainer-clean-libtool:
index ea17dfa..1a2f834 100644 (file)
@@ -23,5 +23,6 @@ clean-libtool:
        -rm -rf .libs _libs
 
 distclean-libtool:
+       -rm -f libtool
 
 maintainer-clean-libtool:
index bad2e3d..4be2fdc 100644 (file)
@@ -175,6 +175,8 @@ distclean-generic:
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
 
 maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
        -rm -f Makefile.in
 mostlyclean-am:  mostlyclean-generic
 
@@ -189,8 +191,6 @@ distclean-am:  distclean-generic clean-am
 distclean: distclean-am
 
 maintainer-clean-am:  maintainer-clean-generic distclean-am
-       @echo "This command is intended for maintainers to use;"
-       @echo "it deletes files that may require special tools to rebuild."
 
 maintainer-clean: maintainer-clean-am
 
index 79c7f12..0e8d3bb 100644 (file)
@@ -470,6 +470,8 @@ distclean-generic:
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
 
 maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
        -rm -f Makefile.in
 mostlyclean-am:  mostlyclean-generic
 
@@ -484,8 +486,6 @@ distclean-am:  distclean-generic clean-am distclean-local
 distclean: distclean-am
 
 maintainer-clean-am:  maintainer-clean-generic distclean-am
-       @echo "This command is intended for maintainers to use;"
-       @echo "it deletes files that may require special tools to rebuild."
 
 maintainer-clean: maintainer-clean-am