[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variable reassign value in same makefile
From: |
Tony Theodore |
Subject: |
Re: variable reassign value in same makefile |
Date: |
Thu, 4 Apr 2024 13:48:08 +1100 |
> On 3 Apr 2024, at 20:52, anand akhare <anandstraight@outlook.com> 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:
https://www.gnu.org/software/make/manual/make.html#Target_002dspecific
Cheers,
Tony