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


 210                                                 "%s.lock",
 211                                                 make_state->string_mb);
 212                         (void) file_lock(make_state->string_mb,
 213                                          make_state_lockfile,
 214                                          (int *) &make_state_locked,
 215                                          0);
 216                         if(!make_state_locked) {
 217                                 printf("-- NO LOCKING for read\n");
 218                                 retmem_mb(make_state_lockfile);
 219                                 make_state_lockfile = 0;
 220                                 return failed;
 221                         }
 222                 }
 223                 if (makefile->body.makefile.contents == NULL) {
 224                         save_makefile_type = makefile_type;
 225                         makefile_type = reading_nothing;
 226                         if ((doname_it) &&
 227                             (doname(makefile_name, true, false) == build_failed)) {
 228                                 if (complain) {
 229                                         (void) fprintf(stderr,
 230                                                        gettext("make: Couldn't make `%s'\n"),

 231                                                        makefile_name->string_mb);
 232                                 }
 233                                 max_include_depth--;
 234                                 makefile_type = save_makefile_type;
 235                                 return failed;
 236                         }
 237                         makefile_type = save_makefile_type;
 238                         //
 239                         // Before calling exists() make sure that we have the right timestamp
 240                         //
 241                         makefile_name->stat.time = file_no_time;
 242 
 243                         if (exists(makefile_name) == file_doesnt_exist) {
 244                                 if (complain ||
 245                                     (makefile_name->stat.stat_errno != ENOENT)) {
 246                                         if (must_exist) {
 247                                                 fatal(gettext("Can't find `%s': %s"),
 248                                                       makefile_name->string_mb,
 249                                                       errmsg(makefile_name->
 250                                                              stat.stat_errno));




 210                                                 "%s.lock",
 211                                                 make_state->string_mb);
 212                         (void) file_lock(make_state->string_mb,
 213                                          make_state_lockfile,
 214                                          (int *) &make_state_locked,
 215                                          0);
 216                         if(!make_state_locked) {
 217                                 printf("-- NO LOCKING for read\n");
 218                                 retmem_mb(make_state_lockfile);
 219                                 make_state_lockfile = 0;
 220                                 return failed;
 221                         }
 222                 }
 223                 if (makefile->body.makefile.contents == NULL) {
 224                         save_makefile_type = makefile_type;
 225                         makefile_type = reading_nothing;
 226                         if ((doname_it) &&
 227                             (doname(makefile_name, true, false) == build_failed)) {
 228                                 if (complain) {
 229                                         (void) fprintf(stderr,
 230                                                        gettext("%s: Couldn't make `%s'\n"),
 231                                                        getprogname(),
 232                                                        makefile_name->string_mb);
 233                                 }
 234                                 max_include_depth--;
 235                                 makefile_type = save_makefile_type;
 236                                 return failed;
 237                         }
 238                         makefile_type = save_makefile_type;
 239                         //
 240                         // Before calling exists() make sure that we have the right timestamp
 241                         //
 242                         makefile_name->stat.time = file_no_time;
 243 
 244                         if (exists(makefile_name) == file_doesnt_exist) {
 245                                 if (complain ||
 246                                     (makefile_name->stat.stat_errno != ENOENT)) {
 247                                         if (must_exist) {
 248                                                 fatal(gettext("Can't find `%s': %s"),
 249                                                       makefile_name->string_mb,
 250                                                       errmsg(makefile_name->
 251                                                              stat.stat_errno));