summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-01-04 14:45:16 +0000
committerPaul Smith <psmith@gnu.org>2006-01-04 14:45:16 +0000
commit64e16d6c00a59fcff9681e032ac8dbec46d3e960 (patch)
tree48a8511b273fdfc555442951b97cca3fceb79ee6 /remake.c
parent3d0d9e5d75eecd48d106918e0f568590f67fc26a (diff)
downloadgunmake-64e16d6c00a59fcff9681e032ac8dbec46d3e960.tar.gz
Various changes getting ready for the release of 3.81.
- Updates to make.texi and make.1 and other documentation - Some VMS patches - Fix minor bugs reported on the mailing list and from Debian.
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/remake.c b/remake.c
index 0795af3..3500535 100644
--- a/remake.c
+++ b/remake.c
@@ -530,7 +530,10 @@ update_file_1 (struct file *file, unsigned int depth)
break;
if (!running)
- d->changed = file_mtime (d->file) != mtime;
+ /* The prereq is considered changed if the timestamp has changed while
+ it was built, OR it doesn't exist. */
+ d->changed = ((file_mtime (d->file) != mtime)
+ || (mtime == NONEXISTENT_MTIME));
lastd = d;
d = d->next;