Formerly read.c.~53~

This commit is contained in:
Roland McGrath 1993-02-04 00:01:08 +00:00
parent f7ee7d26a5
commit db545dffcc

22
read.c
View file

@ -1,4 +1,5 @@
/* Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
/* Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993
Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@ -343,6 +344,8 @@ read_makefile (filename, type)
p = collapsed;
while (isspace (*p))
++p;
/* We cannot consider a line containing just a tab to be empty
because it might constitute an empty command for a target. */
if (*p == '\0' && lb.buffer[0] != '\t')
continue;
@ -418,17 +421,16 @@ read_makefile (filename, type)
unsigned int len;
if (no_targets)
{
/* Ignore the commands in a rule with no targets. */
no_targets = 0;
continue;
}
if (filenames == 0)
makefile_fatal (filename, lineno,
"commands with no associated target");
/* If there is no preceding rule line, don't treat this line
as a command, even though it begins with a tab character.
SunOS 4 make appears to behave this way. */
/* Add this command line to end of the line being accumulated. */
if (filenames != 0)
{
/* Append this command line to the line being accumulated. */
p = lb.buffer;
if (commands_idx == 0)
commands_started = lineno;
@ -444,7 +446,9 @@ read_makefile (filename, type)
continue;
}
else if (word1eq ("export", 6))
}
if (word1eq ("export", 6))
{
struct variable *v;
p2 = next_token (p + 6);