summaryrefslogtreecommitdiff
path: root/implicit.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-12-18 17:43:47 +0000
committerPaul Smith <psmith@gnu.org>1999-12-18 17:43:47 +0000
commitaf44f16799fa185e2729cda1653c80d29b598642 (patch)
treeeb3a7c2d2fdaff7b27d5c7f37939718538e3fa59 /implicit.c
parent1a35bfb45b3dfbd38c583247a90a21c3b10ccafa (diff)
downloadgunmake-af44f16799fa185e2729cda1653c80d29b598642.tar.gz
* Fix problems with double-colon rules.
* Fix problems with INTERMEDIATE rules.
Diffstat (limited to 'implicit.c')
-rw-r--r--implicit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/implicit.c b/implicit.c
index 88bce9e..4156402 100644
--- a/implicit.c
+++ b/implicit.c
@@ -340,8 +340,6 @@ pattern_search (file, archive, depth, recursions)
deps_found = 0;
for (dep = rule->deps; dep != 0; dep = dep->next)
{
- struct file *fp;
-
/* If the dependency name has a %, substitute the stem. */
p = strchr (dep_name (dep), '%');
if (p != 0)
@@ -395,12 +393,9 @@ pattern_search (file, archive, depth, recursions)
dependency file we are actually looking for is in a different
directory (the one gotten by prepending FILENAME's directory),
so it might actually exist. */
- /* If we find a file but the intermediate flag is set, then it
- was put here by a .INTERMEDIATE: rule so ignore it. */
if ((!dep->changed || check_lastslash)
- && (((fp = lookup_file (p)) != 0 && !fp->intermediate)
- || file_exists_p (p)))
+ && (lookup_file (p) != 0 || file_exists_p (p)))
{
found_files[deps_found++] = xstrdup (p);
continue;