Fix for PR automake/14:
[automake.git] / tests / extra.test
blobf79c99fd8bc0e8347fdec68a84e58cfde9e73e84
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 $AUTOMAKE || exit 1
21 grep "^zardoz" Makefile.in || exit 1
23 # Can't have EXTRA clean rules.
24 grep 'clean.*EXTRA' Makefile.in && exit 1
25 exit 0