mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-27 07:15:02 +00:00
Formerly rule.c.~6~
This commit is contained in:
parent
eb7484abc4
commit
62e8630bdc
1 changed files with 10 additions and 0 deletions
10
rule.c
10
rule.c
|
@ -94,6 +94,8 @@ count_implicit_rule_limits ()
|
|||
|
||||
if (p != 0 && p2 > p)
|
||||
{
|
||||
/* There is a slash before the % in the dep name.
|
||||
Extract the directory name. */
|
||||
if (p == dep->name)
|
||||
++p;
|
||||
if (p - dep->name > namelen)
|
||||
|
@ -108,12 +110,16 @@ count_implicit_rule_limits ()
|
|||
|
||||
if (!dir_file_exists_p (name, "."))
|
||||
{
|
||||
/* The name is absolute and the directory does not exist. */
|
||||
if (*name == '/')
|
||||
{
|
||||
freerule (rule, lastrule);
|
||||
--num_pattern_rules;
|
||||
goto end_main_loop;
|
||||
}
|
||||
else
|
||||
/* The directory does not exist, but
|
||||
it might be found in a VPATH directory. */
|
||||
rule->subdir = 1;
|
||||
}
|
||||
}
|
||||
|
@ -524,4 +530,8 @@ print_rule_data_base ()
|
|||
#endif
|
||||
puts (" reference nonexistent subdirectories.");
|
||||
}
|
||||
|
||||
if (num_pattern_rules != rules)
|
||||
fatal ("BUG: num_pattern_rules wrong! %u != %u",
|
||||
num_pattern_rules, rules);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue