From: Richard Boulton Date: Thu, 23 Aug 2001 15:05:36 +0000 (+0000) Subject: * tests/yacc7.test: Actually add this file: was accidentally omitted. X-Git-Tag: Release-1-5b~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=725b26a23b53173fe3e954b16a1c4f2bd184f746;p=thirdparty%2Fautomake.git * tests/yacc7.test: Actually add this file: was accidentally omitted. --- diff --git a/ChangeLog b/ChangeLog index 6bfeed993..1a34dc464 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-08-23 Richard Boulton + + * tests/yacc7.test: Actually add this file: was accidentally omitted. + 2001-08-22 Tom Tromey * automake.texi (Conditionals): Mention that conditionals must diff --git a/tests/yacc7.test b/tests/yacc7.test new file mode 100755 index 000000000..166193088 --- /dev/null +++ b/tests/yacc7.test @@ -0,0 +1,42 @@ +#! /bin/sh + +# Test to make sure dependencies are generated correctly for .h files. +# Report from Richard Boulton. + +. $srcdir/defs || exit 1 + +$needs_gnu_make +$needs_autoconf + +cat > configure.in << 'END' +AC_INIT +AM_INIT_AUTOMAKE(nonesuch, nonesuch) +AC_PROG_INSTALL +AC_PROG_MAKE_SET +AC_PROG_CC +AC_PROG_YACC +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +bin_PROGRAMS = foo +foo_SOURCES = foo.y +AM_YFLAGS = -d +END + +cat > foo.y << 'END' +%% +WORD: "up"; +%% +END + +$ACLOCAL || exit 1 +$AUTOMAKE -a || exit 1 +$AUTOCONF || exit 1 +./configure || exit 1 + +$MAKE foo.h || exit 1 + +test -e foo.h || exit 1 + +exit 0