help-make
[Top][All Lists]
Advanced

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

Re: make 3.81rc2: automatic variables strip leading "./"


From: Paul D. Smith
Subject: Re: make 3.81rc2: automatic variables strip leading "./"
Date: Fri, 31 Mar 2006 10:23:01 -0500

%% "Angel Tsankov" <address@hidden> writes:

  at> I figured it out:
  at> CANONIZE = $(subst ./,,$(1))

This might be dangerous.  Have you considered the differences in
behavior between using subst and patsubst here?  I think patsubst is
more likely to be what you want:

    $(patsubst ./%,%,$(1))

I can't visualize the whole thing with just this change, but if it works
for you that's good!

-- 
-------------------------------------------------------------------------------
 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]