is text after the last line. Report from Matthew D. Langston.
1998-10-16 Tom Tromey <tromey@cygnus.com>
+ * 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.
? ''
: $top_builddir . '/');
- while (<DEP_FILE>)
+ while (<DEP_FILE> && ! $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;
}