help-make
[Top][All Lists]
Advanced

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

Re: Deferred->immediate variable reassignment trick.


From: Brian J. Murrell
Subject: Re: Deferred->immediate variable reassignment trick.
Date: Wed, 21 Jun 2023 11:55:14 -0400
User-agent: Evolution 3.48.3 (3.48.3-1.fc38)

On Wed, 2023-06-21 at 11:47 -0400, Paul Smith wrote:
> On Wed, 2023-06-21 at 08:31 -0700, Kaz Kylheku wrote:
> > If I just have this:
> > 
> >   IMPORTANT_VAR := $(shell sh -c "echo calculate; echo executed
> > 1>&2")
> > 
> > and do "make IMPORTANT_VAR=alternative", I still see "executed"
> > on standard output.
> 
> IMO that is a bug and it should be reported as such on Savannah.

Is it?  Isn't the functionality of not overriding a variable value set
on the make command line with a value in the Makefile what the ?=
assignment operator is for?

Cheers,
b.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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