repo.or.cz
/
automake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* automake.texi (Macros): Document AM_PROG_AS.
[automake.git]
/
tests
/
pluseq2.test
blob
9be0a5e5b98ad40b8925ca95ab816eace285bfdd
1
#! /bin/sh
2
3
# Test `+=' with conditionals.
4
5
.
$srcdir
/
defs ||
exit
1
6
7
echo
'AM_CONDITIONAL(CHECK, true)'
>>
configure.
in
8
9
cat
>
Makefile.am
<<
'END'
10
11
if
CHECK
12
data_DATA
=
zar
13
endif
14
15
if
CHECK
16
data_DATA
+=
doz
17
else
18
data_DATA
+=
dog
19
endif
20
21
END
22
23
: >
zar
24
: >
doz
25
: >
dog
26
27
$AUTOMAKE
||
exit
1
28
grep
'CHECK_TRUE.*zar doz'
Makefile.
in
||
exit
1
29
grep
'CHECK_FALSE.*dog'
Makefile.
in