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:
parent
527597b2d9
commit
716297c2d3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user