- 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:
John Baldwin 2012-10-10 14:47:46 +00:00
parent 9823d52705
commit c388f51ab4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241395

View File

@ -431,7 +431,7 @@ read_file(char *fname)
next_quoted_word(fp, wd);
if (wd == 0) {
fprintf(stderr,
"%s: %s missing compile command string.\n",
"%s: %s missing dependency string.\n",
fname, this);
exit(1);
}
@ -762,7 +762,7 @@ do_rules(FILE *f)
break;
}
snprintf(cmd, sizeof(cmd),
"${%s_%c%s}\n", ftype,
"${%s_%c%s}", ftype,
toupper(och),
ftp->f_flags & NOWERROR ? "_NOWERROR" : "");
compilewith = cmd;