typo + new comment
[automake.git] / tests / subobj4.test
blob452d25d8b02379cb6b953ce0b5341a48760de791
1 #! /bin/sh
3 # Make sure `../foo/foo.cpp' generates a rule.
4 # Report from Dave Brolley.
6 . $srcdir/defs || exit 1
8 cat >> configure.in << 'END'
9 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
10 PACKAGE=nonesuch
11 VERSION=nonesuch
12 AC_ARG_PROGRAM
13 AC_PROG_INSTALL
14 AC_PROG_MAKE_SET
15 AM_PROG_CC_C_O
16 AC_PROG_CC
17 AC_PROG_CXX
18 AC_OUTPUT(Makefile d1/Makefile d2/Makefile)
19 END
21 mkdir d1 d2
23 cat > Makefile.am << 'END'
24 SUBDIRS = d1 d2
25 END
27 cat > d1/Makefile.am << 'END'
28 bin_PROGRAMS = z
29 z_SOURCES = ../d2/z.c
30 END
32 cat > d2/Makefile.am << 'END'
33 END
35 : > compile
36 : > d2/z.c
38 $ACLOCAL || exit 1
39 $AUTOMAKE || exit 1
41 grep 'CC.*z' d1/Makefile.in