bug-make
[Top][All Lists]
Advanced

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

Re: simple assignment of target-specific variables


From: Dmitry Goncharov
Subject: Re: simple assignment of target-specific variables
Date: Sun, 28 Jun 2020 22:33:41 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jun 09, 2020 at 09:36:43AM -0700, David Boyce wrote:

> On Tue, Jun 9, 2020 at 9:21 AM Dmitry Goncharov <dgoncharov@users.sf.net>
> wrote:
> > You mean for target specific simple variable memory is allocated and
> > the variable is initialized only if the target is built, right?

> Yes, that's the suggestion I was making though I don't know the innards of
> make well enough to know how hard it would be.


After further thinking i came to the following example.

a:=1
bat: wom:=$(a)
a:=2

bat:; @echo wom=$(wom)


If make postpones initialization of wom until bat recipe has to run then the
value of wom will be 2. This would be a breaking change.

regards, Dmitry



reply via email to

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