help-make
[Top][All Lists]
Advanced

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

Re: pass parent stem value to prerequisite rule


From: Martin d'Anjou
Subject: Re: pass parent stem value to prerequisite rule
Date: Thu, 28 Jul 2011 16:08:07 -0400

You are correct, second expansion is only for prerequisites ($$* in
the pattern-specific variable has no effect). I would really like this
feature. What is the complexity of putting it in? I was able in the
past to modify job.c to abort at the first error, so I am willing to
try.

Thanks,
Martin

> I'm not at all sure this can be made to work, because automatic
> variables are defined in the context of the command script for the rule
> only (see the docs), but if it has any chance to work you MUST use an
> escaped "$" in the parent_stem setting:
>
>        rule_%: parent_stem=$$*
>
> (again see the docs for .SECONDEXPANSION)
>



reply via email to

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