source: trunk/essentials/sys-devel/automake-1.8/tests/output10.test

Last change on this file was 3118, checked in by bird, 18 years ago

automake 1.8.5

File size: 1.5 KB
Line 
1#! /bin/sh
2# Copyright (C) 2003 Free Software Foundation, Inc.
3#
4# This file is part of GNU Automake.
5#
6# GNU Automake is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# GNU Automake is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with Automake; see the file COPYING. If not, write to
18# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19# Boston, MA 02111-1307, USA.
20
21# Make sure an AC_CONFIG_FILES can have an AC_CONFIG_FILES output as input.
22# This is comparable to output9.test, but testing Makefile rules.
23# PR/411
24
25. ./defs || exit 1
26
27set -e
28
29cat >> configure.in << END
30AC_SUBST([FOO], [top])
31AC_SUBST([BAR], [bot])
32AC_CONFIG_FILES([a/top])
33AC_CONFIG_FILES([a/bot])
34AC_CONFIG_FILES([b/Makefile:a/top:b/Makefile.in:a/bot])
35AC_OUTPUT
36END
37
38mkdir a
39mkdir b
40
41cat >Makefile.am <<\EOF
42SUBDIRS = b
43dist-hook:
44 test ! -f $(distdir)/a/top
45 test ! -f $(distdir)/a/bot
46EOF
47
48cat >b/Makefile.am <<\EOF
49output:
50 echo $(TOP)$(BOT) > ok
51EOF
52
53echo TOP=@FOO@ >a/top.in
54echo BOT=@BAR@ >a/bot.in
55
56$ACLOCAL
57$AUTOCONF
58$AUTOMAKE
59
60mkdir build
61cd build
62../configure
63cd b
64$MAKE output
65grep topbot ok
66cd ..
67$MAKE distcheck
Note: See TracBrowser for help on using the repository browser.