mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-25 04:35:44 +00:00
Formerly vpath.c.~12~
This commit is contained in:
parent
d3fc910b29
commit
2e0e3d22ec
1 changed files with 11 additions and 1 deletions
12
vpath.c
12
vpath.c
|
@ -66,7 +66,17 @@ build_vpath_lists ()
|
|||
/* If there is a VPATH variable with a nonnull value, construct the
|
||||
general VPATH list from it. We use variable_expand rather than just
|
||||
calling lookup_variable so that it will be recursively expanded. */
|
||||
p = variable_expand ("$(VPATH)");
|
||||
|
||||
{
|
||||
/* Turn off --warn-undefined-variables while we expand SHELL and IFS. */
|
||||
int save = warn_undefined_variables_flag;
|
||||
warn_undefined_variables_flag = 0;
|
||||
|
||||
p = variable_expand ("$(VPATH)");
|
||||
|
||||
warn_undefined_variables_flag = save;
|
||||
}
|
||||
|
||||
if (*p != '\0')
|
||||
{
|
||||
construct_vpath_list ("%", p);
|
||||
|
|
Loading…
Reference in a new issue