mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-31 00:53:23 +00:00
Formerly vpath.c.~15~
This commit is contained in:
parent
c9f149173f
commit
fe450df425
1 changed files with 18 additions and 4 deletions
22
vpath.c
22
vpath.c
|
@ -370,10 +370,24 @@ selective_vpath_search (path, file, mtime_ptr)
|
||||||
else
|
else
|
||||||
bcopy (filename, n, flen + 1);
|
bcopy (filename, n, flen + 1);
|
||||||
|
|
||||||
if (not_target)
|
/* Check if the file is mentioned in a makefile. If *FILE is not
|
||||||
/* Since *FILE is not a target, if the file is
|
a target, that is enough for us to decide this file exists.
|
||||||
mentioned in a makefile, we consider it existent. */
|
If *FILE is a target, then the file must be mentioned in the
|
||||||
exists = lookup_file (name) != 0;
|
makefile also as a target to be chosen.
|
||||||
|
|
||||||
|
The restriction that *FILE must not be a target for a
|
||||||
|
makefile-mentioned file to be chosen was added by an
|
||||||
|
inadequately commented change in July 1990; I am not sure off
|
||||||
|
hand what problem it fixes.
|
||||||
|
|
||||||
|
In December 1993 I loosened of this restriction to allow a file
|
||||||
|
to be chosen if it is mentioned as a target in a makefile. This
|
||||||
|
seem logical. */
|
||||||
|
{
|
||||||
|
struct file *f = lookup_file (name);
|
||||||
|
if (f != 0)
|
||||||
|
exists = not_target || f->is_target;
|
||||||
|
}
|
||||||
|
|
||||||
if (!exists)
|
if (!exists)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue