- Fix the error message when a dependency string is not provided to
reference a missing dependency rather than a missing compile command. - Don't append a newline to the auto-generated compile command. The compile command has a newline appended when it is later output to the Makefile. MFC after: 2 weeks
This commit is contained in:
parent
9823d52705
commit
c388f51ab4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241395
@ -431,7 +431,7 @@ read_file(char *fname)
|
|||||||
next_quoted_word(fp, wd);
|
next_quoted_word(fp, wd);
|
||||||
if (wd == 0) {
|
if (wd == 0) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: %s missing compile command string.\n",
|
"%s: %s missing dependency string.\n",
|
||||||
fname, this);
|
fname, this);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -762,7 +762,7 @@ do_rules(FILE *f)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
"${%s_%c%s}\n", ftype,
|
"${%s_%c%s}", ftype,
|
||||||
toupper(och),
|
toupper(och),
|
||||||
ftp->f_flags & NOWERROR ? "_NOWERROR" : "");
|
ftp->f_flags & NOWERROR ? "_NOWERROR" : "");
|
||||||
compilewith = cmd;
|
compilewith = cmd;
|
||||||
|
Loading…
Reference in New Issue
Block a user