summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-08-23 22:15:17 +0000
committerPaul Smith <psmith@gnu.org>1999-08-23 22:15:17 +0000
commit5dc4b92b606351290d979371da4a500ce8f6a57e (patch)
treeb8d06830fdf21258b23c4759a4ae0ca53b1f5bea /remake.c
parentb3fa4b3c7e77cb4a1767b16b1cfbef2ab19a78cf (diff)
downloadgunmake-5dc4b92b606351290d979371da4a500ce8f6a57e.tar.gz
* Fix jobserver algorithm again.
* A couple of nits. * Fix considered pruning for double-colon rules.
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/remake.c b/remake.c
index 74c4a9a..d96d4ed 100644
--- a/remake.c
+++ b/remake.c
@@ -316,19 +316,19 @@ update_file (file, depth)
register int status = 0;
register struct file *f;
- /* Prune the dependency graph: if we've already been here on _this_ pass
- through the dependency graph, we don't have to go any further. We won't
- reap_children until we start the next pass, so no state change is
- possible below here until then. */
- if (file->considered == considered)
- {
- DEBUGPR (_("Pruning file `%s'.\n"));
- return 0;
- }
- file->considered = considered;
-
for (f = file->double_colon ? file->double_colon : file; f != 0; f = f->prev)
{
+ /* Prune the dependency graph: if we've already been here on _this_
+ pass through the dependency graph, we don't have to go any further.
+ We won't reap_children until we start the next pass, so no state
+ change is possible below here until then. */
+ if (f->considered == considered)
+ {
+ DEBUGPR (_("Pruning file `%s'.\n"));
+ continue;
+ }
+ f->considered = considered;
+
status |= update_file_1 (f, depth);
check_renamed (f);