From: Alexandre Duret-Lutz Date: Fri, 21 Jun 2002 19:59:33 +0000 (+0000) Subject: * automake.in (lang_yacc_target_hook): Add $output to X-Git-Tag: Release-1-6b~51 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=9916002a1bc42b0b989b7bba7260a78bc9e051f2;p=automake.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 69d3f2f0..ebd48249 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-06-21 Alexandre Duret-Lutz + + * 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. + 2002-06-19 Alexandre Duret-Lutz * lib/am/lang-compile.am (%FPFX%DEPMODE): Delete. This is now diff --git a/THANKS b/THANKS index f7ffaf27..13d1e8e3 100644 --- a/THANKS +++ b/THANKS @@ -52,6 +52,7 @@ Eric Magnien emagnien@club-internet.fr Eric Siegerman erics_97@pobox.com Erick Branderhorst branderh@iaehv.nl Erik Lindahl E.Lindahl@chem.rug.nl +Flavien Astraud flav42@yahoo.fr François Pinard pinard@iro.umontreal.ca Fred Fish fnf@ninemoons.com Ganesan Rajagopal rganesan@novell.com diff --git a/automake.in b/automake.in index f639dc02..756ce903 100755 --- a/automake.in +++ b/automake.in @@ -5115,6 +5115,9 @@ sub lang_yacc_target_hook # 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. diff --git a/tests/yacc4.test b/tests/yacc4.test index dcea3eda..d2ab1072 100755 --- a/tests/yacc4.test +++ b/tests/yacc4.test @@ -63,4 +63,15 @@ $MAKE 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 diff --git a/tests/yacc7.test b/tests/yacc7.test index db4dd691..66828fa7 100755 --- a/tests/yacc7.test +++ b/tests/yacc7.test @@ -32,22 +32,36 @@ WORD: "up"; %% 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 rm -f foo.h foo.c -$MAKE check-dist || exit 1 +$MAKE check-dist # 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 +: