From 8be04791c141c4e51779b8c9d15db0fe2052a638 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 16 Oct 1998 11:43:15 +0000 Subject: [PATCH] * automake.in (scan_dependency_file): Don't give an error if there is text after the last line. Report from Matthew D. Langston. --- ChangeLog | 3 +++ automake.in | 13 +++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 52dce037..25f5dc76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1998-10-16 Tom Tromey + * automake.in (scan_dependency_file): Don't give an error if there + is text after the last line. Report from Matthew D. Langston. + * m4/mktime.m4: Detect glibc mktime bug. From Jim Meyering. * Makefile.am (SUBDIRS): Added `.' again. diff --git a/automake.in b/automake.in index d997dee3..ea8635a8 100755 --- a/automake.in +++ b/automake.in @@ -2598,19 +2598,16 @@ sub scan_dependency_file ? '' : $top_builddir . '/'); - while () + while ( && ! $last_line) { - if ($last_line) - { - # If LAST_LINE set then we've already seen what we thought - # was the last line. - goto bad_format; - } next if (/$WHITE_PATTERN/o); chop; if (! s/\\$//) { - # No trailing "\" means this should be the last line. + # No trailing "\" means this should be the last line of + # the first target. We can have multiple targets due to + # the "deleted header file" fix. For the generated + # Makefile we simply skip these fake targets. $last_line = 1; } -- 2.43.5