193 NOCATGETS("%s.lock"),
194 make_state->string_mb);
195 (void) file_lock(make_state->string_mb,
196 make_state_lockfile,
197 (int *) &make_state_locked,
198 0);
199 if(!make_state_locked) {
200 printf(NOCATGETS("-- NO LOCKING for read\n"));
201 retmem_mb(make_state_lockfile);
202 make_state_lockfile = 0;
203 return failed;
204 }
205 }
206 if (makefile->body.makefile.contents == NULL) {
207 save_makefile_type = makefile_type;
208 makefile_type = reading_nothing;
209 if ((doname_it) &&
210 (doname(makefile_name, true, false) == build_failed)) {
211 if (complain) {
212 (void) fprintf(stderr,
213 #ifdef DISTRIBUTED
214 catgets(catd, 1, 67, "dmake: Couldn't dmake `%s'\n"),
215 #else
216 catgets(catd, 1, 237, "make: Couldn't make `%s'\n"),
217 #endif
218 makefile_name->string_mb);
219 }
220 max_include_depth--;
221 makefile_type = save_makefile_type;
222 return failed;
223 }
224 makefile_type = save_makefile_type;
225 //
226 // Before calling exists() make sure that we have the right timestamp
227 //
228 makefile_name->stat.time = file_no_time;
229
230 if (exists(makefile_name) == file_doesnt_exist) {
231 if (complain ||
232 (makefile_name->stat.stat_errno != ENOENT)) {
233 if (must_exist) {
234 fatal(catgets(catd, 1, 68, "Can't find `%s': %s"),
235 makefile_name->string_mb,
236 errmsg(makefile_name->
237 stat.stat_errno));
|
193 NOCATGETS("%s.lock"),
194 make_state->string_mb);
195 (void) file_lock(make_state->string_mb,
196 make_state_lockfile,
197 (int *) &make_state_locked,
198 0);
199 if(!make_state_locked) {
200 printf(NOCATGETS("-- NO LOCKING for read\n"));
201 retmem_mb(make_state_lockfile);
202 make_state_lockfile = 0;
203 return failed;
204 }
205 }
206 if (makefile->body.makefile.contents == NULL) {
207 save_makefile_type = makefile_type;
208 makefile_type = reading_nothing;
209 if ((doname_it) &&
210 (doname(makefile_name, true, false) == build_failed)) {
211 if (complain) {
212 (void) fprintf(stderr,
213 catgets(catd, 1, 237, "make: Couldn't make `%s'\n"),
214 makefile_name->string_mb);
215 }
216 max_include_depth--;
217 makefile_type = save_makefile_type;
218 return failed;
219 }
220 makefile_type = save_makefile_type;
221 //
222 // Before calling exists() make sure that we have the right timestamp
223 //
224 makefile_name->stat.time = file_no_time;
225
226 if (exists(makefile_name) == file_doesnt_exist) {
227 if (complain ||
228 (makefile_name->stat.stat_errno != ENOENT)) {
229 if (must_exist) {
230 fatal(catgets(catd, 1, 68, "Can't find `%s': %s"),
231 makefile_name->string_mb,
232 errmsg(makefile_name->
233 stat.stat_errno));
|