source: trunk/essentials/sys-devel/automake-1.9/tests/conff.test

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

automake 1.9.6

File size: 1.8 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., 51 Franklin Street, Fifth Floor,
19# Boston, MA 02110-1301, USA.
20
21# Make sure rebuild rules work even when AC_CONFIG_FILES uses colons.
22# Report from Alexander Turbov.
23
24required=GNUmake
25. ./defs || exit 1
26
27set -e
28
29cat >> configure.in << 'END'
30AC_CONFIG_FILES([bar/Makefile:bar/Makefile.in:Makefile.bot])
31AC_OUTPUT
32END
33
34cat > Makefile.am << 'END'
35SUBDIRS = bar
36EXTRA_DIST = Makefile.bot
37END
38
39mkdir bar
40cat > bar/Makefile.am << 'END'
41top-rule:
42 @echo 'top rule'
43END
44
45cat > Makefile.bot << 'END'
46bot-rule:
47 @echo 'bot rule'
48END
49
50$ACLOCAL
51$AUTOCONF
52$AUTOMAKE
53./configure
54$MAKE
55
56cd bar
57$MAKE top-rule >stdout
58cat stdout
59grep 'top rule' stdout
60$MAKE bot-rule >stdout
61cat stdout
62grep 'bot rule' stdout
63cd ..
64
65$sleep
66
67cat > bar/Makefile.am << 'END'
68top-rule:
69 @echo 'top2 rule'
70END
71$MAKE
72
73cd bar
74$MAKE top-rule >stdout
75cat stdout
76grep 'top2 rule' stdout
77$MAKE bot-rule >stdout
78cat stdout
79grep 'bot rule' stdout
80cd ..
81
82$sleep
83
84cat > Makefile.bot << 'END'
85bot-rule:
86 @echo 'bot2 rule'
87END
88$MAKE
89
90cd bar
91$MAKE top-rule >stdout
92cat stdout
93grep 'top2 rule' stdout
94$MAKE bot-rule >stdout
95cat stdout
96grep 'bot2 rule' stdout
97cd ..
98
99$MAKE distcheck
Note: See TracBrowser for help on using the repository browser.