summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2004-09-21 20:23:12 +0000
committerBoris Kolpackov <boris@kolpackov.net>2004-09-21 20:23:12 +0000
commit3d0c657480a53d257dcb9943c78b1d1d1a2ce299 (patch)
tree4772e03f4350bbebfde62605316e340153d4813a /file.c
parentafbd6448e905c59d0d2f51afa90f76d4be9e44c1 (diff)
downloadmake-3d0c657480a53d257dcb9943c78b1d1d1a2ce299.tar.gz
Fixed bug in implicit rule prerequisite evaluation code. Added test.
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/file.c b/file.c
index 8f895037..ae997451 100644
--- a/file.c
+++ b/file.c
@@ -455,8 +455,9 @@ snap_deps (void)
for (d = f->deps; d != 0; d = d->next)
for (f2 = d->file; f2 != 0; f2 = f2->prev)
{
- /* Mark this file as phony and nonexistent. */
+ /* Mark this file as phony nonexistent target. */
f2->phony = 1;
+ f2->is_target = 1;
f2->last_mtime = NONEXISTENT_MTIME;
f2->mtime_before_update = NONEXISTENT_MTIME;
}