Print this page
make: prefix errors and such with the right command name

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/read.cc
          +++ new/usr/src/cmd/make/bin/read.cc
↓ open down ↓ 219 lines elided ↑ open up ↑
 220  220                                  return failed;
 221  221                          }
 222  222                  }
 223  223                  if (makefile->body.makefile.contents == NULL) {
 224  224                          save_makefile_type = makefile_type;
 225  225                          makefile_type = reading_nothing;
 226  226                          if ((doname_it) &&
 227  227                              (doname(makefile_name, true, false) == build_failed)) {
 228  228                                  if (complain) {
 229  229                                          (void) fprintf(stderr,
 230      -                                                       gettext("make: Couldn't make `%s'\n"),
      230 +                                                       gettext("%s: Couldn't make `%s'\n"),
      231 +                                                       getprogname(),
 231  232                                                         makefile_name->string_mb);
 232  233                                  }
 233  234                                  max_include_depth--;
 234  235                                  makefile_type = save_makefile_type;
 235  236                                  return failed;
 236  237                          }
 237  238                          makefile_type = save_makefile_type;
 238  239                          //
 239  240                          // Before calling exists() make sure that we have the right timestamp
 240  241                          //
↓ open down ↓ 1907 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX