Print a warning when we are given two scripts for one target. This is neither

as wide-reaching nor intensive as NetBSD's similar, but the warning uses the
same text.

Inspired by:	NetBSD
This commit is contained in:
jmallett 2002-07-28 03:52:41 +00:00
parent 67306baf36
commit 5a6eb0ca5f

View File

@ -1499,6 +1499,10 @@ ParseAddCmd(gnp, cmd)
/* if target already supplied, ignore commands */
if (!(gn->type & OP_HAS_COMMANDS))
(void)Lst_AtEnd(gn->commands, cmd);
else
Parse_Error(PARSE_WARNING,
"duplicate script for target \"%s\" ignored",
gn->name);
return(0);
}