aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2010-01-04 00:49:04 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2010-01-04 00:49:04 +0000
commitbfc4c0cf088dcaf59f3e3b3548a65f055d570dc9 (patch)
tree058a74cfe9a40afdb56c0da60f9eab6b9a132d0b /usr.bin/make
parent6100e6c2c9a05beae724a458b7da04447339c31f (diff)
Notes
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/parse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 3d9a92af71ca7..134d90578b9d3 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -699,6 +699,7 @@ static void
ParseDoDependency(char *line)
{
char *cp; /* our current position */
+ char *lstart = line; /* original input line */
GNode *gn; /* a general purpose temporary node */
int op; /* the operator on the line */
char savec; /* a place to save a character */
@@ -809,7 +810,8 @@ ParseDoDependency(char *line)
"contain unresolved cvs/rcs/??? merge "
"conflicts");
} else
- Parse_Error(PARSE_FATAL, "Need an operator");
+ Parse_Error(PARSE_FATAL, lstart[0] == '.' ?
+ "Unknown directive" : "Need an operator");
return;
}
*cp = '\0';
@@ -1029,7 +1031,8 @@ ParseDoDependency(char *line)
op = OP_DEPENDS;
}
} else {
- Parse_Error(PARSE_FATAL, "Missing dependency operator");
+ Parse_Error(PARSE_FATAL, lstart[0] == '.' ?
+ "Unknown directive" : "Missing dependency operator");
return;
}