From 788a63b300568b1c1876e4ad30b966df2f0710fc Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 8 Jun 2002 17:22:28 +0000 Subject: * automake.in (lang_yacc_target_hook): Add rule to recover from the removal of $header. * lib/am/yacc.am (%BASE%.h): Remove (duplicate with the one output by lang_yacc_target_hook). * tests/yacc7.test: Try to recreate foo.h after its removal. * tests/yacc8.test: Add `AM_YFLAGS = -d' and try to recreate parse.h too. Reported by Bernd Jendrissek. --- tests/yacc7.test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/yacc7.test') diff --git a/tests/yacc7.test b/tests/yacc7.test index 7bd62748d..7b474a73f 100755 --- a/tests/yacc7.test +++ b/tests/yacc7.test @@ -45,4 +45,10 @@ test -f foo.h || exit 1 rm -f foo.h foo.c $MAKE check-dist || exit 1 +# We should be able to recover if foo.h is deleted. + +rm foo.h || exit 1 +$MAKE foo.h || exit 1 +test -f foo.h || exit 1 + exit 0 -- cgit v1.2.1