Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / exsource.test
blobcb586f04c98a88d0f4001d25433fe9b23dbfa4c9
1 #! /bin/sh
2 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2004
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 # Test to make sure EXTRA_..._SOURCES actually works.
19 # Bug report from Henrik Frystyk Nielsen.
21 . ./defs || Exit 1
23 set -e
25 echo AC_PROG_CC >> configure.in
27 cat > Makefile.am << 'END'
28 bin_PROGRAMS = www
29 www_SOURCES = www.c
30 EXTRA_www_SOURCES = xtra.c
31 www_LDADD = @extra_stuff@
32 END
34 : > www.c
35 : > xtra.c
37 $ACLOCAL
38 $AUTOMAKE
40 grep '@am__include@ .*/xtra\.P' Makefile.in