[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pattern rule prereqs are variables with % in them
From: |
Paul D. Smith |
Subject: |
Re: Pattern rule prereqs are variables with % in them |
Date: |
Wed, 7 Sep 2005 07:43:34 -0400 |
%% Boris Kolpackov <address@hidden> writes:
bk> "Paul D. Smith" <address@hidden> writes:
>> In the second pass we still don't replace "%" the way you want BUT
>> the automatic variables are available.
bk> Actually we do.
Of course. Doh!
bk> all: /tmp/foo.x
bk> foo_OBJS = foo.o bar.o
bk> %.x: $$(%_OBJS)
bk> The result of $$(%_OBJS) will be '/tmp/foo.o /tmp/bar.o'.
Eh? Really?!?! The path munging is applied to the CONTENTS of the
variable? That seems pretty... strange...
--
-------------------------------------------------------------------------------
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
RE: Pattern rule prereqs are variables with % in them, Boucher, Jean, 2005/09/07