----- Original Message ----- 
From: "Paul D. Smith" <[EMAIL PROTECTED]>
To: "__alex__" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: 12 ������� 2001 �. 17:55
Subject: Re: per-target VPATH


> %% __alex__ <[EMAIL PROTECTED]> writes:
> 
>   a> It seems that gmake doesn't take in account per-target VPATH
>   a> variable.
> 
> Per-target variables are only available within the context of the
> command script.  So, they are not available to make when it's searching
> for prerequisites.
> 
> See the GNU make manual, section "Target Specific Variable Values".

Actually I don't see anything stating that during implicit rule search only global 
VPATH is used. May be this should be explicitly reflected in the documentation 
(I've checked VPATH/implicit rule search sections too)

>   a> Having working pattern-specific VPATH would be even better. I
>   a> wonder whether it's going to be implemented in future versions of
>   a> gmake.
> 
> No, I have no plans to do this; the current behavior of target-specific
> variables, as above, is the planned behavior going forward.

I've had a quick look at the sources of make 3.79.1. In the 'file' struct there's a
char* vpath variable which, afaict, is unused right now. Moreover, when finding 
implicit rule per-target variable list is already available. If I ever make patch to 
take 
per-target VPATH in consideration when finding implicit rules, how big are chances 
that it gets to the future version of gmake?

Regards,
    Alex

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to