From 0e6c4f5b0ed4183bbdb8cdce168dcbd1bc9cf182 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Dec 2005 16:46:19 +0000 Subject: Fixed bug #13022 by setting is_target flag on files that this implicit pattern rule also makes. --- implicit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'implicit.c') 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; } -- cgit v1.2.3