diff options
author | harti <harti@FreeBSD.org> | 2005-03-11 11:29:39 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-03-11 11:29:39 +0000 |
commit | 364f261bed3d4f605e8a6613b88275abb211a816 (patch) | |
tree | 2ba17493be77078bcc7282d2590ccdfb98f82465 /usr.bin/make | |
parent | 1429a658acd3744465dee85fddf52a280b174d6f (diff) | |
download | FreeBSD-src-364f261bed3d4f605e8a6613b88275abb211a816.zip FreeBSD-src-364f261bed3d4f605e8a6613b88275abb211a816.tar.gz |
Call ParseFinishLine() also for the last line in a file. This
patch differs from the previous one in that it calls the function
only when a real file hits EOF. The bodies of .for loops are also
handled as files, but for these we don't want to end a dependency block
on the 'EOF' as in:
foo:
do-this
.for ...
do-something
.endfor
do-more
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index bb36531..7068ada 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2534,6 +2534,9 @@ Parse_File(char *name, FILE *stream) free(line); } + if (curFile.F != NULL) + ParseFinishLine(); + /* * Reached EOF, but it may be just EOF of an include file... */ |