version 1.90, 2020/01/13 15:24:31 |
version 1.91, 2020/01/13 15:41:53 |
|
|
} |
} |
} |
} |
|
|
bool |
void |
Compat_Run(Lst targs) /* List of target nodes to re-create */ |
Compat_Init() |
{ |
{ |
|
} |
|
|
|
void |
|
Compat_Update(GNode *gn) |
|
{ |
|
} |
|
|
|
void |
|
Compat_Run(Lst targs, bool *has_errors, bool *out_of_date) |
|
{ |
GNode *gn = NULL; /* Current root target */ |
GNode *gn = NULL; /* Current root target */ |
int errors; /* Number of targets not built due to errors */ |
|
bool out_of_date = false; |
|
|
|
/* For each entry in the list of targets to create, call CompatMake on |
/* For each entry in the list of targets to create, call CompatMake on |
* it to create the thing. CompatMake will leave the 'built_status' |
* it to create the thing. CompatMake will leave the 'built_status' |
|
|
* ABORTED gn was not built because one of its |
* ABORTED gn was not built because one of its |
* dependencies could not be built due |
* dependencies could not be built due |
* to errors. */ |
* to errors. */ |
errors = 0; |
|
while ((gn = Lst_DeQueue(targs)) != NULL) { |
while ((gn = Lst_DeQueue(targs)) != NULL) { |
CompatMake(gn, NULL); |
CompatMake(gn, NULL); |
|
|
|
|
else if (gn->built_status == ABORTED) { |
else if (gn->built_status == ABORTED) { |
printf("`%s' not remade because of errors.\n", |
printf("`%s' not remade because of errors.\n", |
gn->name); |
gn->name); |
out_of_date = true; |
*out_of_date = true; |
errors++; |
*has_errors = true; |
} else { |
} else { |
out_of_date = true; |
*out_of_date = true; |
} |
} |
} |
} |
|
|
/* If the user has defined a .END target, run its commands. */ |
|
if (errors == 0 && !queryFlag) |
|
run_gnode(end_node); |
|
return out_of_date; |
|
} |
} |