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
commit5e0f2a90ce647d0de2f66f8bb7d8bcf38eadd254 (patch)
tree48a8511b273fdfc555442951b97cca3fceb79ee6 /remake.c
parentb15fe4b7da9c56a786f7bfac9283e1b277525318 (diff)
downloadmake-5e0f2a90ce647d0de2f66f8bb7d8bcf38eadd254.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 0795af3b..35005350 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;