* tests/Makefile.am (TESTS): Added yacc5.test.
[automake.git] / tests / extra.test
blob933a4b9bada53380d7a2790af3d8950cda0c8a65
1 #! /bin/sh
3 # Test to make sure EXTRA_ targets are generated. This test used to
4 # make sure the targets were *not* generated. That is wrong; the
5 # targets should always be generated. However, they should not be
6 # built by default.
8 . $srcdir/defs || exit 1
10 cat >> configure.in << 'END'
11 AC_PROG_CC
12 END
14 cat > Makefile.am << 'END'
15 bin_PROGRAMS = @foo@
16 EXTRA_PROGRAMS = zardoz
17 END
19 $ACLOCAL || exit 1
20 $AUTOMAKE || exit 1
22 grep "^zardoz" Makefile.in || exit 1
24 # Can't have EXTRA clean rules.
25 grep 'clean.*EXTRA' Makefile.in && exit 1
26 exit 0