makefile - Turn "overriding commands for target" into error -
gnu make issues warning if there more 1 recipe single target. possible convert warning error have more visible?
i ended patching gnu make , rebuilding sources (git tag 4.1):
diff --git a/read.c b/read.c index 6ff4bcc..f227681 100644 --- a/read.c +++ b/read.c @@ -2121,7 +2121,7 @@ record_files (struct nameseq *filenames, const char *pattern, error (&cmds->fileinfo, l, _("warning: overriding recipe target '%s'"), f->name); - error (&f->cmds->fileinfo, l, + fatal (&f->cmds->fileinfo, l, _("warning: ignoring old recipe target '%s'"), f->name); }
Comments
Post a Comment