Deferred->immediate variable reassignment trick.

2023-06-20 Thread Kaz Kylheku
I used a trick in a makefile along the following pattern. It works fine. I'm just circulating it for any comments/discussion. # Delayed evaluation on purpose: IMPORTANT_VAR = $(shell $CODE_TO_CALCULATE_IMPORTANT_VAR) # Force lazy variable to be eager: IMPORTANT_VAR := $(IMPORTANT_VA

Re: Deferred->immediate variable reassignment trick.

2023-06-20 Thread Paul Smith
On Tue, 2023-06-20 at 11:46 -0700, Kaz Kylheku wrote: > I used a trick in a makefile along the following pattern. It works > fine. I'm just circulating it for any comments/discussion. > >   # Delayed evaluation on purpose: > >   IMPORTANT_VAR = $(shell $CODE_TO_CALCULATE_IMPORTANT_VAR) > >