summaryrefslogtreecommitdiff
path: root/implicit.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-09-04 07:26:19 +0000
committerPaul Smith <psmith@gnu.org>2002-09-04 07:26:19 +0000
commit14c24455fbab51e52f6fb4049801fde18d961f87 (patch)
tree8127d7aa6cfedde3f284f5c6ae77e4f2eefee59e /implicit.c
parent371abc0772a088f6913d9104a91737bcf748c783 (diff)
downloadmake-14c24455fbab51e52f6fb4049801fde18d961f87.tar.gz
Fix for complex situations where directories are declared as prerequisites.
Info on this fix from barkalow@reputation.com: thanks! Some updates/cleanups of some of the tests; added a forgotten -t test, etc.
Diffstat (limited to 'implicit.c')
-rw-r--r--implicit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/implicit.c b/implicit.c
index 0ce7a493..857895d7 100644
--- a/implicit.c
+++ b/implicit.c
@@ -399,8 +399,8 @@ pattern_search (file, archive, depth, recursions)
directory (the one gotten by prepending FILENAME's directory),
so it might actually exist. */
- if ((!dep->changed || check_lastslash)
- && (lookup_file (p) != 0 || file_exists_p (p)))
+ if (lookup_file (p) != 0
+ || ((!dep->changed || check_lastslash) && file_exists_p (p)))
{
found_files[deps_found++] = xstrdup (p);
continue;