aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-01-19 00:14:29 +0000
committerRoland McGrath <roland@redhat.com>1993-01-19 00:14:29 +0000
commitc2b69b5d9de5cb701c3cbe3f2e980d5465121ec2 (patch)
tree4c877a92ed7d4f7ccfece59a54120c9cd15cfacd
parent6925f7153abf7c82dde84a668ccd15afcc0a0c12 (diff)
downloadgunmake-c2b69b5d9de5cb701c3cbe3f2e980d5465121ec2.tar.gz
Formerly read.c.~51~
-rw-r--r--read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/read.c b/read.c
index 72b3fe3..9331778 100644
--- a/read.c
+++ b/read.c
@@ -388,7 +388,7 @@ read_makefile (filename, type)
p2 = next_token (p + 8);
if (p2 == 0)
makefile_error (filename, lineno, "empty `override' directive");
- if (!strncmp (p2, "define", 6))
+ if (!strncmp (p2, "define", 6) && (isblank (p2[6]) || p2[6] == '\0'))
{
if (ignoring)
in_ignored_define = 1;
@@ -403,6 +403,8 @@ read_makefile (filename, type)
}
else if (!ignoring && !try_variable_definition (p2, o_override))
makefile_error (filename, lineno, "empty `override' directive");
+
+ continue;
}