From Nicolas Joly:
[automake.git] / tests / pluseq3.test
blob71d4ccf90738722ec153e84c51699e6e90e7d11d
1 #! /bin/sh
3 # Another `+=' 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 += \
17 doz
18 else
19 data_DATA += dog
20 endif
22 END
24 : > zar
25 : > doz
26 : > dog
28 set -e
30 $AUTOMAKE
32 grep '^@CHECK_TRUE@data_DATA = zar \\$' Makefile.in
33 grep '^@CHECK_TRUE@ doz$' Makefile.in
35 grep '^@CHECK_FALSE@data_DATA = dog$' Makefile.in
37 exit 0