Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / colon3.test
blob41c4edb46517c951cd9ad772ecd32cb073279485
1 #! /bin/sh
2 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Make sure ":" works with files automake generates.
19 # This test is for multiple ":"s.
21 . ./defs || Exit 1
23 set -e
25 cat > configure.in << 'END'
26 AC_INIT
27 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
28 AC_OUTPUT(Makefile:zardoz.in:two.in:three.in)
29 END
31 : > zardoz.am
32 : > two.in
33 : > three.in
35 $ACLOCAL
36 $AUTOMAKE
38 # We actually check several things here.
39 # Automake should have created zardoz.in.
40 test -f zardoz.in
42 # The generated file should refer to zardoz.in and zardoz.am, but
43 # never just "zardoz".
44 echo Grep1
45 grep zardoz zardoz.in | $FGREP -v 'zardoz.in' | $FGREP -v 'zardoz.am' > O || :
46 # We cat the output file so we see in when verbose.
47 cat O
48 test -z "`cat O`"
50 # Makefile should depend on two.in.
51 echo Grep2
52 grep '^Makefile:.* \$(srcdir)/two.in' zardoz.in
53 # Likewise three.in.
54 echo Grep3
55 grep '^Makefile:.* \$(srcdir)/three.in' zardoz.in