Hello make team,
according to the info make page, recursive variable takes value at the time
it is used. However, no reference is there in doc what happens if value is
changed for the variable. To verify this I created small makefile as below and
on executing make trg1, it shows VAR value as
On Wed, 3 Apr 2024 at 13:07, anand akhare wrote:
> according to the info make page, recursive variable takes value at the
> time it is used.
> However, no reference is there in doc what happens if value is changed
> for the variable.
Hi, what you are not understanding is explained in this part
> On 3 Apr 2024, at 20:52, anand akhare wrote:
>
> My idea is that intermediate values of variable should be used until changed
> for target and recipe. Same behavior is seen with non-recursive variables.
> (like VAR:=abc)
You probably want target-specific variables to achieve that behaviour