From: Akim Demaille Date: Sun, 25 Nov 2007 16:43:17 +0000 (+0100) Subject: Several *-local in a rule do not work. X-Git-Tag: v1.10b~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adde5afee18384c94974a380df4f85a372e58df9;p=thirdparty%2Fautomake.git Several *-local in a rule do not work. * tests/all.test: Check this case. Use set -e. * tests/Makefile.am (XFAIL_TESTS): Add it. Signed-off-by: Akim Demaille --- diff --git a/ChangeLog b/ChangeLog index 314b2d68c..ac528fbd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-25 Akim Demaille + + Several *-local in a rule do not work. + * tests/all.test: Check this case. + Use set -e. + * tests/Makefile.am (XFAIL_TESTS): Add it. + 2007-11-25 Akim Demaille Fix uses of am__strip_dir. diff --git a/tests/Makefile.am b/tests/Makefile.am index c4e7fc6d4..80d3d712a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,10 @@ ## Process this file with automake to create Makefile.in -XFAIL_TESTS = auxdir2.test cond17.test txinfo5.test +XFAIL_TESTS = \ +all.test \ +auxdir2.test \ +cond17.test \ +txinfo5.test TESTS = \ aclibobj.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index e5e71ef00..3b6a92ae6 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -149,7 +149,12 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -XFAIL_TESTS = auxdir2.test cond17.test txinfo5.test +XFAIL_TESTS = \ +all.test \ +auxdir2.test \ +cond17.test \ +txinfo5.test + TESTS = \ aclibobj.test \ aclocal.test \ diff --git a/tests/all.test b/tests/all.test index e9ffb70b6..a0d749e5e 100755 --- a/tests/all.test +++ b/tests/all.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1999, 2001, 2002, 2007 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -21,14 +21,27 @@ # Test to make sure all-local and other -local targets work correctly. . ./defs || exit 1 +set -e -for target in all install-exec install-data uninstall; do +targets='all install-exec install-data uninstall' +for target in $targets; do echo "Doing $target" echo "${target}-local:" > Makefile.am - $ACLOCAL || exit 1 -$AUTOMAKE || exit 1 + $ACLOCAL + $AUTOMAKE $FGREP "${target}-local ${target}-local" Makefile.in && exit 1 done + +# Several *-local's in a single rule. +echo "Doing $targets" +echo "$targets:" | sed -e 's/[ :]/-local&/g' > Makefile.am +$ACLOCAL +$AUTOMAKE + +for target in $targets; do + $EGREP "${target}-am:.*${target}-local" Makefile.in +done + exit 0