| 1 | commit d1ba0ee36b2bdd91434b5df90f0f4cceda7d6979 |
| 2 | Author: psmith <psmith> |
| 3 | Date: Mon Sep 10 02:36:05 2012 +0000 |
| 4 | |
| 5 | Force intermediate targets to be considered if their non-intermediate |
| 6 | parent needs to be remade. Fixes Savannah bug #30653. |
| 7 | |
| 8 | diff --git a/remake.c b/remake.c |
| 9 | index c0bf709..b1ddd23 100644 |
| 10 | --- a/remake.c |
| 11 | +++ b/remake.c |
| 12 | @@ -612,6 +612,10 @@ update_file_1 (struct file *file, unsigned int depth) |
| 13 | d->file->dontcare = file->dontcare; |
| 14 | } |
| 15 | |
| 16 | + /* We may have already considered this file, when we didn't know |
| 17 | + we'd need to update it. Force update_file() to consider it and |
| 18 | + not prune it. */ |
| 19 | + d->file->considered = !considered; |
| 20 | |
| 21 | dep_status |= update_file (d->file, depth); |
| 22 | |