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

ChangeLog
tests/yacc7.test

index f68ba2387e0a13bba4d99c4ba10a3fb712500b59..69a66b93b8d07c46fec87110d7da462a71d8f32e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 2989697a208740db70bb6e4fefe9500f73c08e2d..7bd62748d463b866a85065b037722fde1ff79838 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
This page took 0.031881 seconds and 5 git commands to generate.