Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / subdir2.test
blobcfd42e8f031756e72452dc7b7f3c2edfc1007119
1 #! /bin/sh
2 # Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test to make sure sub-sub-dirs work correctly.
19 . ./defs || Exit 1
21 mkdir one
22 mkdir one/two
24 cat > configure.in << 'END'
25 AC_INIT
26 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
27 AC_OUTPUT(Makefile one/Makefile one/two/Makefile)
28 END
30 # Files required because we are using `--gnu'.
31 : > INSTALL
32 : > NEWS
33 : > README
34 : > COPYING
35 : > AUTHORS
36 : > ChangeLog
38 cat > Makefile.am << 'END'
39 SUBDIRS = one
40 END
42 cat > one/Makefile.am << 'END'
43 SUBDIRS = two
44 END
46 cat > one/two/Makefile.am << 'END'
47 pkgdata_DATA =
48 END
50 $ACLOCAL || Exit 1
51 $AUTOMAKE --gnu