>
> 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::
>         @echo "Here1: $$(MY_FUNC1_VAR)"
>
>   $(func2)
>   ifndef SOME_VALUE
>      $(func3)
>   endif
> endef
>
>
> $ make
> Here1: 1
> Here2: 1
> $


Your suggestion works perfectly, thank you!
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to