From Nicolas Joly:
[automake.git] / tests / subobj8.test
blob9b9bfd17efbd57393dc2f3c94950e9ead9ff9169
1 #! /bin/sh
3 # Make sure `compile' is included when subdir-objects is used in a subdir.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AC_INIT(Makefile.am)
9 AC_CONFIG_AUX_DIR(tools)
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 AC_PROG_CC
12 AM_PROG_CC_C_O
13 AC_OUTPUT(Makefile foo/Makefile)
14 END
16 mkdir tools foo foo/bar
18 cat > Makefile.am << 'END'
19 SUBDIRS = foo
20 END
22 cat > foo/Makefile.am << 'EOF'
23 AUTOMAKE_OPTIONS = subdir-objects
24 bin_PROGRAMS = mumble
25 mumble_SOURCES = bar/a.c
26 EOF
28 $ACLOCAL || exit 1
29 $AUTOMAKE --add-missing || exit 1
30 test -f tools/compile || exit 1