version 1.64, 2012/10/09 19:49:28 |
version 1.65, 2012/12/08 12:54:17 |
|
|
bool |
bool |
Make_Run(Lst targs) /* the initial list of targets */ |
Make_Run(Lst targs) /* the initial list of targets */ |
{ |
{ |
int errors; /* Number of errors the Job module reports */ |
bool problem; /* errors occurred */ |
GNode *gn; |
GNode *gn; |
unsigned int i; |
unsigned int i; |
bool cycle; |
bool cycle; |
|
|
(void)MakeStartJobs(); |
(void)MakeStartJobs(); |
} |
} |
|
|
errors = Job_Finish(); |
problem = Job_Finish(); |
cycle = false; |
cycle = false; |
|
|
for (gn = ohash_first(&targets, &i); gn != NULL; |
for (gn = ohash_first(&targets, &i); gn != NULL; |
|
|
if (has_been_built(gn)) |
if (has_been_built(gn)) |
continue; |
continue; |
cycle = true; |
cycle = true; |
errors++; |
problem = true; |
printf("Error: target %s unaccounted for (%s)\n", |
printf("Error: target %s unaccounted for (%s)\n", |
gn->name, status_to_string(gn)); |
gn->name, status_to_string(gn)); |
} |
} |
|
|
* because some inferior reported an error. |
* because some inferior reported an error. |
*/ |
*/ |
Lst_ForEach(targs, MakePrintStatus, &cycle); |
Lst_ForEach(targs, MakePrintStatus, &cycle); |
if (errors) |
if (problem) |
Fatal("Errors while building"); |
Fatal("Errors while building"); |
|
|
return true; |
return true; |