3 # Test of yacc functionality, derived from GNU binutils
6 .
$srcdir/defs ||
exit 1
8 cat > configure.
in << 'END'
10 AM_INIT_AUTOMAKE
(nonesuch
, nonesuch
)
20 cat > Makefile.am
<< 'END'
22 maude_SOURCES
= sub
/maude.y
30 $AUTOMAKE -a ||
exit 1
32 grep '^maude\.c:' Makefile.
in ||
exit 1
35 ## Try again with subdir-objects.
37 cat > Makefile.am
<< 'END'
38 AUTOMAKE_OPTIONS
= subdir-objects
40 maude_SOURCES
= sub
/maude.y
44 $AUTOMAKE -a ||
exit 1
46 grep '^sub/maude\.c:' Makefile.
in ||
exit 1
49 ## Try again with per-exe flags.
51 cat > Makefile.am
<< 'END'
53 maude_SOURCES
= sub
/maude.y
54 ## A particularly trickey case.
59 $AUTOMAKE -a ||
exit 1
61 # Rule should use maude_YFLAGS.
62 grep 'AM_YFLAGS.*maude' Makefile.
in && exit 1
65 grep 'maudec' Makefile.
in && exit 1
67 # Make sure the .o file is required.
68 grep '^am_maude_OBJECTS.*maude' Makefile.
in ||
exit 1