[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Evaluating a variable only once after a recipe has run
From: |
Paul Smith |
Subject: |
Re: Evaluating a variable only once after a recipe has run |
Date: |
Sat, 18 Apr 2020 10:43:05 -0400 |
On Sat, 2020-04-18 at 14:55 +0200, R. Diez wrote:
> I will rephrase the question just in case it is not clear. I want GNU
> Make to run recipe A, and then use the result of recipe A to compute
> the value of a makefile variable, but only once. Other recipes that
> follow should use that value without evaluating the variable
> definition again.
You may find this trick from my blog to be helpful:
http://make.mad-scientist.net/deferred-simple-variable-expansion/
Cheers!
- Evaluating a variable only once after a recipe has run, R. Diez, 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, Kaz Kylheku (gmake), 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, R. Diez, 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, Kaz Kylheku (gmake), 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, R. Diez, 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, R. Diez, 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, Paul Smith, 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, R. Diez, 2020/04/18
- Re: Evaluating a variable only once after a recipe has run, Paul Smith, 2020/04/18
Re: Evaluating a variable only once after a recipe has run,
Paul Smith <=