aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remake.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/remake.c b/remake.c
index 0ba53c0..3812aa3 100644
--- a/remake.c
+++ b/remake.c
@@ -979,15 +979,6 @@ f_mtime (file, search)
}
}
- /* Store the mtime into all the entries for this file. */
- if (file->double_colon)
- file = file->double_colon;
- do
- {
- file->last_mtime = mtime;
- file = file->prev;
- } while (file != 0);
-
{
/* Files can have bogus timestamps that nothing newly made will be
"newer" than. Updating their dependents could just result in loops.
@@ -1009,6 +1000,15 @@ f_mtime (file, search)
}
}
+ /* Store the mtime into all the entries for this file. */
+ if (file->double_colon)
+ file = file->double_colon;
+ do
+ {
+ file->last_mtime = mtime;
+ file = file->prev;
+ } while (file != 0);
+
return mtime;
}