| 202 | */ |
| 203 | |
| 204 | static void force_rebuilds( TARGET * t ) |
| 205 | { |
| 206 | TARGETS * d; |
| 207 | for ( d = t->rebuilds; d; d = d->next ) |
| 208 | { |
| 209 | TARGET * r = d->target; |
| 210 | |
| 211 | /* If it is not already being rebuilt for other reasons. */ |
| 212 | if ( r->fate < T_FATE_BUILD ) |
| 213 | { |
| 214 | if ( DEBUG_FATE ) |
| 215 | printf( "fate change %s from %s to %s (by rebuild)\n", |
| 216 | object_str( r->name ), target_fate[ (int) r->fate ], target_fate[ T_FATE_REBUILD ] ); |
| 217 | |
| 218 | /* Force rebuild it. */ |
| 219 | r->fate = T_FATE_REBUILD; |
| 220 | |
| 221 | /* And make sure its dependants are updated too. */ |
| 222 | update_dependants( r ); |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | |
| 228 | int make0rescan( TARGET * t, TARGET * rescanning ) |
no test coverage detected