* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / pluseq2.test
blob9be0a5e5b98ad40b8925ca95ab816eace285bfdd
1 #! /bin/sh
3 # Test `+=' with conditionals.
5 . $srcdir/defs || exit 1
7 echo 'AM_CONDITIONAL(CHECK, true)' >> configure.in
9 cat > Makefile.am << 'END'
11 if CHECK
12 data_DATA = zar
13 endif
15 if CHECK
16 data_DATA += doz
17 else
18 data_DATA += dog
19 endif
21 END
23 : > zar
24 : > doz
25 : > dog
27 $AUTOMAKE || exit 1
28 grep 'CHECK_TRUE.*zar doz' Makefile.in || exit 1
29 grep 'CHECK_FALSE.*dog' Makefile.in