From: Alexandre Duret-Lutz Date: Thu, 6 Jun 2002 17:22:10 +0000 (+0000) Subject: For PR automake/47 (fixed a long time ago): X-Git-Tag: v1.10.2~1334 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82e8eac0b6a28f3b7239e42d6ce813749b129751;p=platform%2Fupstream%2Fautomake.git For PR automake/47 (fixed a long time ago): * tests/yacc7.test: Also check that parser sources are distributed. --- diff --git a/ChangeLog b/ChangeLog index f68ba23..69a66b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2002-06-06 Alexandre Duret-Lutz + For PR automake/47 (fixed a long time ago): + * tests/yacc7.test: Also check that parser sources are distributed. + +2002-06-06 Alexandre Duret-Lutz + * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable. (distclean): Use it. (maintainer-clean): Delete autom4te.cache and diff --git a/tests/yacc7.test b/tests/yacc7.test index 2989697..7bd6274 100755 --- a/tests/yacc7.test +++ b/tests/yacc7.test @@ -2,23 +2,29 @@ # Test to make sure dependencies are generated correctly for .h files. # Report from Richard Boulton. +# +# Also check that the sources of the generated parser are distributed. +# PR/47. . $srcdir/defs || exit 1 $needs_gnu_make -cat > configure.in << 'END' -AC_INIT -AM_INIT_AUTOMAKE(nonesuch, nonesuch) +cat >> configure.in << 'END' AC_PROG_CC AC_PROG_YACC -AC_OUTPUT(Makefile) +AC_OUTPUT END cat > Makefile.am << 'END' bin_PROGRAMS = foo foo_SOURCES = foo.y AM_YFLAGS = -d + +check-dist: distdir + test -f $(distdir)/foo.y + test -f $(distdir)/foo.c + test -f $(distdir)/foo.h END cat > foo.y << 'END' @@ -36,4 +42,7 @@ $MAKE foo.h || exit 1 test -f foo.h || exit 1 +rm -f foo.h foo.c +$MAKE check-dist || exit 1 + exit 0