>
> Right. If you don't want those effects, then don't use inner
> $(eval)s! If you leave out the $(eval)s and just reference $(func2)
> and $(func3) inside the definition of func1, those issues don't arise:
>
>
> define func1
> SOME_VALUE := 1
> MY_FUNC1_VAR := $$(SOME_VALUE)
> all::
>
On Tue, Apr 15, 2008 at 2:47 PM, Tony Strauss
<[EMAIL PROTECTED]> wrote:
> Calling $(eval) within $(eval) can lead to very unintuitive (at least to me
> :) behavior. In particular, the inner $(eval) is expanded *and* executed
> during the expansion of the outer $(eval).
Right, because make needs
Calling $(eval) within $(eval) can lead to very unintuitive (at least to me
:) behavior. In particular, the inner $(eval) is expanded *and* executed
during the expansion of the outer $(eval). For instance (I've also attached
this example, since my email client mangled the tabs in the code below):