help-make
[Top][All Lists]
Advanced

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

Re: Side-effects during variable assignments?


From: Paul Smith
Subject: Re: Side-effects during variable assignments?
Date: Thu, 08 Jun 2023 08:56:49 -0400
User-agent: Evolution 3.48.2 (by Flathub.org)

On Thu, 2023-06-08 at 14:42 +0200, Sébastien Hinderer wrote:
> Is there a way to achieve this by somehow extending the macros so
> that they modifiy the LEXERS & co varialbes each time they are called
> before returning the string they currently return?

Sure.  Just use an $(eval ...) inside your variable assignment.  The
eval function expands to the empty string after parsing its arguments
as makefile code, and so it can be put pretty much anywhere.



reply via email to

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