summaryrefslogtreecommitdiff
path: root/implicit.c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2005-12-09 16:46:19 +0000
committerBoris Kolpackov <boris@kolpackov.net>2005-12-09 16:46:19 +0000
commit0e6c4f5b0ed4183bbdb8cdce168dcbd1bc9cf182 (patch)
tree5b601d66155fc716b66fc98b420f9125bd348fd0 /implicit.c
parenta34b85490d26a9064f892e43b8c6fa8005a7c770 (diff)
downloadgunmake-0e6c4f5b0ed4183bbdb8cdce168dcbd1bc9cf182.tar.gz
Fixed bug #13022 by setting is_target flag on files that this implicit
pattern rule also makes.
Diffstat (limited to 'implicit.c')
-rw-r--r--implicit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/implicit.c b/implicit.c
index ad873f1..cfd6629 100644
--- a/implicit.c
+++ b/implicit.c
@@ -928,6 +928,11 @@ pattern_search (struct file *file, int archive,
if (f && f->precious)
new->file->precious = 1;
+ /* Set the is_target flag so that this file is not treated
+ as intermediate by the pattern rule search algorithm and
+ file_exists_p cannot pick it up yet. */
+ new->file->is_target = 1;
+
file->also_make = new;
}