summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'rule.c')
-rw-r--r--rule.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/rule.c b/rule.c
index 90e04e3..5933777 100644
--- a/rule.c
+++ b/rule.c
@@ -109,10 +109,14 @@ count_implicit_rule_limits ()
#ifdef VMS
char *p = strrchr (dep->name, ']');
+ char *p2;
+ if (p == 0)
+ p = strrchr (dep->name, ':');
+ p2 = p != 0 ? strchr (dep->name, '%') : 0;
#else
char *p = strrchr (dep->name, '/');
-#endif
char *p2 = p != 0 ? strchr (dep->name, '%') : 0;
+#endif
ndeps++;
if (len > max_pattern_dep_length)
@@ -140,7 +144,7 @@ count_implicit_rule_limits ()
dep->changed = !dir_file_exists_p (name, "");
#ifdef VMS
- if (dep->changed && *name == ']')
+ if (dep->changed && strchr (name, ':') != 0)
#else
if (dep->changed && *name == '/')
#endif