help-make
[Top][All Lists]
Advanced

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

Re: $(wildcard ) evaluation


From: Garrett Cooper
Subject: Re: $(wildcard ) evaluation
Date: Wed, 23 Jul 2008 10:36:16 -0700

On Wed, Jul 23, 2008 at 10:34 AM, Garrett Cooper <address@hidden> wrote:
>
> You'll need double the $ in defines if you're referencing variables
> outside the scope of the define.
>
> I'd read more about second-expansion, et all in the manual.
>
> -Garrett

Scratch "if you're referencing variables outside the scope of the
define". If you're happy with the statements being evaluated /
resolved in the first-pass of the define, $ is fine. Otherwise, use $$
to defer its expansion until make gets around to the second define
eval (which is what you want here).
-Garrett




reply via email to

[Prev in Thread] Current Thread [Next in Thread]