summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-01-22 05:43:03 +0000
committerPaul Smith <psmith@gnu.org>2000-01-22 05:43:03 +0000
commit5577cdc2616262ae89c28cda49b5dd5449be472d (patch)
tree9e5b67f4754ce5a2d64bad43d28a7eaf093b6274 /rule.c
parentb7b83d6398e8e552dd1b9d70d18d7262753e03d4 (diff)
downloadgunmake-5577cdc2616262ae89c28cda49b5dd5449be472d.tar.gz
* Merge VMS patches by Hartmut Becker.
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