diff --git a/tests/all.test b/tests/all.test index e9ffb70..1d82525 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. # @@ -22,13 +22,25 @@ . ./defs || exit 1 -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 + $AUTOMAKE || exit 1 $FGREP "${target}-local ${target}-local" Makefile.in && exit 1 done + +# Make sure it also works when they defined together. +echo "Doing targets" +echo "$targets:" | sed -e 's/[ :]/-local\&/g' > Makefile.am +$ACLOCAL || exit 1 +$AUTOMAKE || exit 1 + +for target in $targets; do + $EGREP "${target}-am:.*${target}-local" Makefile.in || exit 1 +done + exit 0