help-make
[Top][All Lists]
Advanced

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

Re: Problem with static pattern rules and full path


From: Paul D. Smith
Subject: Re: Problem with static pattern rules and full path
Date: Thu, 29 Sep 2005 09:13:52 -0400

%% Dale King <address@hidden> writes:

  >> You could do one of two things: use the VPATH variable as a
  >> target-specific (or pattern-specific) variable (I think this will
  >> work).

  dk> No, it doesn't appear to work.

Hm.  I guess VPATH is parsed early and not re-parsed for each target.
This could be considered a bug, or at least an area for enhancement.

  >> Or, use a more restrictive pattern for vpath, so instead of:
  >> 
  >> vpath %.c ...
  >> 
  >> you do something like:
  >> 
  >> vpath $(prefix)/%.c ...
  >> 
  >> where the prefix variable restricts the values to match the
  >> "current" location, whatever that is.

  dk> That doesn't seem to work either.

It will definitely work, if you can compute the proper value of prefix.
Which you may not be able to do, depending on your environment.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]