[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: |
Boris Kolpackov |
Subject: |
Re: Pattern rule prereqs are variables with % in them |
Date: |
Wed, 7 Sep 2005 08:20:01 +0000 (UTC) |
User-agent: |
nn/6.6.5+RFC1522 |
"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.
Actually we do. There is also a subtle difference between using
$* and %. When one uses %, the path-splitting logic kicks-in. So
if we have
all: /tmp/foo.x
foo_OBJS = foo.o bar.o
%.x: $$(%_OBJS)
The result of $$(%_OBJS) will be '/tmp/foo.o /tmp/bar.o'. While if we use
%.x: $$($$*_OBJS)
The result will be 'foo.o bar.o'.
hth,
-boris
RE: Pattern rule prereqs are variables with % in them, Boucher, Jean, 2005/09/07