diff options
author | Roland McGrath <roland@redhat.com> | 1993-09-17 04:46:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-09-17 04:46:36 +0000 |
commit | 9fc36f735856db7655e10036fab7b8090d65d271 (patch) | |
tree | 0b9b6c02a755c4462412164ad2913ddfcf2dad95 /commands.c | |
parent | ec2751c045738d27e64072d7dfc9c307e4877e64 (diff) | |
download | gunmake-9fc36f735856db7655e10036fab7b8090d65d271.tar.gz |
Formerly commands.c.~19~
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -409,8 +409,8 @@ delete_child_targets (child) if (child->deleted) return; - /* Delete the file unless it's precious. */ - if (!child->file->precious + /* Delete the file unless it's precious or not actually a file (phony). */ + if (!child->file->precious && !child->file->phony && stat (child->file->name, &st) == 0 && S_ISREG (st.st_mode) && (time_t) st.st_mtime != child->file->last_mtime) @@ -423,7 +423,7 @@ delete_child_targets (child) /* Also remove any non-precious targets listed in the `also_make' member. */ for (d = child->file->also_make; d != 0; d = d->next) - if (!d->file->precious) + if (!d->file->precious && !d->file->phony) if (stat (d->file->name, &st) == 0 && S_ISREG (st.st_mode) && (time_t) st.st_mtime != d->file->last_mtime) |