From 64e16d6c00a59fcff9681e032ac8dbec46d3e960 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 4 Jan 2006 14:45:16 +0000 Subject: 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. --- remake.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'remake.c') 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; -- cgit v1.2.3