'make' prints an extra leading `make: ' and extra trailing newline if

there is no target to make.

% make
make: make: no target to make.

%

Beause the function Punt() in main.c takes care of leading 'make:' and
trailing newline, so, there is no need to pass explicitly.

Submitted by:	enami@ba2.so-net.or.jp
Obtained from:	NetBSD GNATS
This commit is contained in:
Nate Williams 1996-07-23 18:55:21 +00:00
parent f12c3c93de
commit fe6ab298ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17259

View File

@ -2606,7 +2606,7 @@ Parse_MainName()
main = Lst_Init (FALSE);
if (mainNode == NILGNODE) {
Punt ("make: no target to make.\n");
Punt ("no target to make.");
/*NOTREACHED*/
} else if (mainNode->type & OP_DOUBLEDEP) {
(void) Lst_AtEnd (main, (ClientData)mainNode);