help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: directory search fails!


From: Paul Smith
Subject: Re: directory search fails!
Date: Wed, 22 Sep 2010 07:37:34 -0400

On Wed, 2010-09-22 at 09:42 +0200, Eli Zaretskii wrote:
> > Date: Tue, 21 Sep 2010 22:48:22 -0700
> > From: Philip Guenther <address@hidden>
> > Cc: address@hidden
> > 
> > Why should the vpath for one target (preq1) apply to a different
> > target (di2/preq2)?
> 
> Because of the excerpt from the manual which started the thread which
> led to this one?  See
> 
>    http://lists.gnu.org/archive/html/help-make/2010-09/msg00086.html
> 
> where this verbiage (from "Search Algorithm") was quoted:
> 
>     a. If the target does not need to be rebuilt, the path to the file
>        found during directory search is used for any prerequisite
>        lists which contain this target.  In short, if make doesn’t
>        need to rebuild the target then you use the path found via
>        directory search.
> 
> This seems to fit the use case, because the prerequisite list of all5
> includes preq1, which was found through vpath.

No.  It says the path is used "for" (that is, in place of) that target
in any prerequisite lists that contain it.  This does NOT say that the
path to the file is used "_TO SEARCH_ for" any other prerequisite in
lists which contain that target.

Make is behaving correctly in the example Ali provided.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]