For PR automake/47 (fixed a long time ago):
authorAlexandre Duret-Lutz <adl@gnu.org>
Thu, 6 Jun 2002 17:22:10 +0000 (17:22 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Thu, 6 Jun 2002 17:22:10 +0000 (17:22 +0000)
* tests/yacc7.test: Also check that parser sources are distributed.

ChangeLog
tests/yacc7.test

index f68ba23..69a66b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
+       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  <duret_g@epita.fr>
+
        * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable.
        (distclean): Use it.
        (maintainer-clean): Delete autom4te.cache and
index 2989697..7bd6274 100755 (executable)
@@ -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