+2004-01-22 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
+ this fixes a spurious failure reported by Andreas Schwab. Also
+ make sure ylwrap is not installed unless needed, and exercise
+ --no-force.
+
2004-01-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
* doc/automake.texi (Dist): Document limitations of distcheck-hook
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
test -f foo/foo.c
test -f foo/foo.o
+# ylwrap is not needed
+test ! -f ./ylwrap
# Now, adds another lexer to test ylwrap.
EXTRA_foo_foo_SOURCES = foo/foo2.l
END
-$AUTOMAKE -a
+# Make sure Makefile.in has a new time stamp: the rebuild rules are
+# used below. We do this after updating Makefile.am, that way we can
+# ensure that automake, even with --no-force, is not confused if the
+# new Makefile.am has the same time stamp as the older one (since the
+# output will change, --no-force should have no effect).
+$sleep
+
+$AUTOMAKE -a --no-force
test -f ./ylwrap
cd sub