source:
trunk/essentials/sys-devel/automake-1.4/tests/cond2.test
Last change on this file was 3124, checked in by , 18 years ago | |
---|---|
File size: 328 bytes |
Line | |
---|---|
1 | #! /bin/sh |
2 | |
3 | # Check SUBDIRS set based on conditionals. |
4 | |
5 | . $srcdir/defs || exit 1 |
6 | |
7 | cat > configure.in << 'END' |
8 | AM_INIT_AUTOMAKE(nonesuch, nonesuch) |
9 | AM_CONDITIONAL(TEST, true) |
10 | AC_OUTPUT(Makefile) |
11 | END |
12 | |
13 | cat > Makefile.am << 'END' |
14 | if TEST |
15 | DIR = dir1 |
16 | else |
17 | DIR = dir2 |
18 | endif |
19 | SUBDIRS = $(DIR) |
20 | END |
21 | |
22 | mkdir dir1 |
23 | |
24 | $AUTOMAKE && exit 1 |
25 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.