allow -local clean rules
authorTom Tromey <tromey@redhat.com>
Wed, 4 Dec 1996 07:48:44 +0000 (07:48 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 4 Dec 1996 07:48:44 +0000 (07:48 +0000)
ChangeLog
Makefile.in
TODO
automake.in
configure
configure.in
m4/Makefile.in
tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
version.texi

index 5f63f05..f081032 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec  4 00:41:23 1996  Tom Tromey  <tromey@cygnus.com>
+
+       * automake.in (do_one_clean_target): Allow -local version of clean
+       targets.
+
 Tue Dec  3 18:58:40 1996  Tom Tromey  <tromey@cygnus.com>
 
        * automake.in (handle_dependencies): Skip C-only lines in
index 7c67f95..f533eeb 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.1j from Makefile.am
+# Makefile.in generated automatically by automake 1.1k from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -404,14 +404,14 @@ maintainer-clean-generic:
 mostlyclean-am:  mostlyclean-vti mostlyclean-info mostlyclean-tags \
                mostlyclean-generic
 
-clean-am:  clean-vti clean-info clean-tags clean-generic mostlyclean-am 
+clean-am:  clean-vti clean-info clean-tags clean-generic mostlyclean-am
 
 distclean-am:  distclean-vti distclean-info distclean-tags \
-               distclean-generic clean-am 
+               distclean-generic clean-am
 
 maintainer-clean-am:  maintainer-clean-vti maintainer-clean-info \
                maintainer-clean-tags maintainer-clean-generic \
-               distclean-am 
+               distclean-am
 
 mostlyclean:  mostlyclean-am mostlyclean-recursive
 
diff --git a/TODO b/TODO
index 6ce01b7..5decff5 100644 (file)
--- a/TODO
+++ b/TODO
@@ -392,6 +392,8 @@ document that dependencies:
 * are put into .deps
 * are system-dependent
 
+clean-local rules
+
 ================================================================
 
 Things to do for autoconf:
index 18542d2..b6ba814 100755 (executable)
@@ -2861,10 +2861,17 @@ sub do_one_clean_target
     {
        if ($last_name || $name ne 'mostly')
        {
-           push (@deps, $last_name . $target . " ");
+           push (@deps, $last_name . $target);
        }
     }
-    # FIXME: not sure if I like the tabs here.
+
+    # If a -local version of the rule is given, add it to the list.
+    if (defined $contents{$name . $target . '-local'})
+    {
+       push (@deps, $name . $target . '-local');
+    }
+
+    # Print the target and the dependencies.
     &pretty_print_rule ($name . $target . ": ", "\t\t", @deps);
 
     # FIXME: shouldn't we really print these messages before running
index 3d1e3d9..0f84284 100755 (executable)
--- a/configure
+++ b/configure
@@ -608,7 +608,7 @@ cat >> confdefs.h <<EOF
 #define PACKAGE "$PACKAGE"
 EOF
 
-VERSION=1.1j
+VERSION=1.1k
 
 cat >> confdefs.h <<EOF
 #define VERSION "$VERSION"
index e02380b..1236bd5 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(automake.in)
 
-AM_INIT_AUTOMAKE(automake, 1.1j)
+AM_INIT_AUTOMAKE(automake, 1.1k)
 
 AC_PATH_PROG(PERL, perl)
 if test -z "$PERL"; then
index d056036..258d2d5 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.1j from Makefile.am
+# Makefile.in generated automatically by automake 1.1k from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -142,12 +142,12 @@ maintainer-clean-generic:
        test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
 mostlyclean:  mostlyclean-generic
 
-clean:  clean-generic mostlyclean 
+clean:  clean-generic mostlyclean
 
-distclean:  distclean-generic clean 
+distclean:  distclean-generic clean
        rm -f config.status
 
-maintainer-clean:  maintainer-clean-generic distclean 
+maintainer-clean:  maintainer-clean-generic distclean
        @echo "This command is intended for maintainers to use;"
        @echo "it deletes files that may require special tools to rebuild."
 
index 86b4ed3..bbd2702 100644 (file)
@@ -1,3 +1,7 @@
+Wed Dec  4 00:41:44 1996  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.am (distclean-local): New target.
+
 Tue Dec  3 11:55:18 1996  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
 
        * dup.test, dup2.test: Modified, now that aclocal allows
index 922dff7..a30d7f9 100644 (file)
@@ -21,3 +21,6 @@ acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \
 ranlib.test confvar.test confvar2.test stdlib.test
 
 EXTRA_DIST = defs $(TESTS)
+
+distclean-local:
+       rm -rf testSubdir
index 13fd7a4..383e1e8 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.1j from Makefile.am
+# Makefile.in generated automatically by automake 1.1k from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -156,12 +156,12 @@ maintainer-clean-generic:
        test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
 mostlyclean:  mostlyclean-generic
 
-clean:  clean-generic mostlyclean 
+clean:  clean-generic mostlyclean
 
-distclean:  distclean-generic clean 
+distclean:  distclean-generic clean distclean-local
        rm -f config.status
 
-maintainer-clean:  maintainer-clean-generic distclean 
+maintainer-clean:  maintainer-clean-generic distclean
        @echo "This command is intended for maintainers to use;"
        @echo "it deletes files that may require special tools to rebuild."
 
@@ -171,6 +171,9 @@ mostlyclean-generic distclean-generic clean-generic \
 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
 
 
+distclean-local:
+       rm -rf testSubdir
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index ba34841..17eb9ff 100644 (file)
@@ -1,3 +1,3 @@
 @set UPDATED 28 November 1996
-@set EDITION 1.1j
-@set VERSION 1.1j
+@set EDITION 1.1k
+@set VERSION 1.1k