automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Yacc output and maintainer-clean


From: Alexandre Duret-Lutz
Subject: FYI: Yacc output and maintainer-clean
Date: 21 Jun 2002 21:49:32 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

`make maintainer-clean' removes parser.h, but not parser.c...

I'm checking in this on HEAD and branch-1-6.

2002-06-21  Alexandre Duret-Lutz  <address@hidden>

        * automake.in (lang_yacc_target_hook): Add $output to
        @maintainer_clean_files.  This was lost on 2001-06-23.
        * tests/yacc7.test, tests/yacc4.test: Complete to check
        that maintainer-clean erases YACC's output files,
        respectively with and without `-d'.
        Reported by Flavien Astraud.

Index: THANKS
===================================================================
RCS file: /cvs/automake/automake/THANKS,v
retrieving revision 1.166.2.12
diff -u -r1.166.2.12 THANKS
--- THANKS      19 Jun 2002 19:59:03 -0000      1.166.2.12
+++ THANKS      21 Jun 2002 19:51:29 -0000
@@ -52,6 +52,7 @@
 Eric Siegerman         address@hidden
 Erick Branderhorst     address@hidden
 Erik Lindahl           address@hidden
+Flavien Astraud                address@hidden
 François Pinard                address@hidden
 Fred Fish              address@hidden
 Ganesan Rajagopal      address@hidden
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1287.2.12
diff -u -r1.1287.2.12 automake.in
--- automake.in 19 Jun 2002 19:59:03 -0000      1.1287.2.12
+++ automake.in 21 Jun 2002 19:51:53 -0000
@@ -5508,6 +5508,9 @@
        # do.
        push (@maintainer_clean_files, $header);
     }
+    # Erase $OUTPUT on `make maintainer-clean' (by GNU standards).
+    # See the comment above for $HEADER.
+    push (@maintainer_clean_files, $output);
 }
 
 # This is a helper for both lex and yacc.
Index: tests/yacc4.test
===================================================================
RCS file: /cvs/automake/automake/tests/yacc4.test,v
retrieving revision 1.3
diff -u -r1.3 yacc4.test
--- tests/yacc4.test    26 Dec 2001 08:22:06 -0000      1.3
+++ tests/yacc4.test    21 Jun 2002 19:52:04 -0000
@@ -72,4 +72,15 @@
 grep '^#.*/sub/\.\./' bar.c && exit 1
 grep '^#.*/sub/\.\./' parse.c && exit 1
 
+# Make distclean must not erase bar.c nor parse.c (by GNU standards) ...
+$MAKE distclean
+test -f bar.c
+test -f parse.c
+# ... but maintainer-clean should.
+../configure
+$MAKE maintainer-clean
+test ! -f bar.c
+test ! -f parse.c
+:
+
 exit 0
Index: tests/yacc7.test
===================================================================
RCS file: /cvs/automake/automake/tests/yacc7.test,v
retrieving revision 1.5.2.2
diff -u -r1.5.2.2 yacc7.test
--- tests/yacc7.test    10 Jun 2002 09:49:51 -0000      1.5.2.2
+++ tests/yacc7.test    21 Jun 2002 19:52:04 -0000
@@ -27,19 +27,32 @@
 %%
 END
 
-$ACLOCAL || exit 1
-$AUTOMAKE -a || exit 1
-$AUTOCONF || exit 1
-./configure || exit 1
+set -e
 
-$MAKE foo.h || exit 1
+$ACLOCAL
+$AUTOMAKE -a
+$AUTOCONF
+./configure
 
-test -f foo.h || exit 1
+$MAKE foo.h
+test -f foo.h
 
 # We should be able to recover if foo.h is deleted.
 
-rm -f foo.h || exit 1
-$MAKE foo.h || exit 1
-test -f foo.h || exit 1
+rm -f foo.h
+$MAKE foo.h
+test -f foo.h
 
-exit 0
+# Make distclean must not erase foo.c nor foo.h (by GNU standards) ...
+$MAKE foo.c
+test -f foo.h
+test -f foo.c
+$MAKE distclean
+test -f foo.h
+test -f foo.c
+# ... but maintainer-clean should.
+./configure
+$MAKE maintainer-clean
+test ! -f foo.h
+test ! -f foo.c
+:
-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]