bug-make
[Top][All Lists]
Advanced

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

Re: Problem setting a variable inside a target


From: Bahman Movaqar
Subject: Re: Problem setting a variable inside a target
Date: Tue, 26 Sep 2023 03:35:08 -0700
User-agent: Evolution 3.50.0

On Sun, 2023-09-24 at 17:23 +0000, Ed L Wolf wrote:
                    
> 
> ifneq ($(wildcard $(DIR_SUPPLIER)),)
> ...
> > $(eval SUPPLIER_A2l := $(sort $(shell find $(DIR_A2LGEN_SUPPLIER) -
> > type f -name "*.a2l"))) 
> ...
> ifeq ($(SUPPLIER_A2l),"*.a2l")
> 

Quickly skimming through your code, I can see that the above `ifneq'
and `ifeq' are evaluated at the very same time/pass.  That means the
result of `eval' will not be visible to `ifeq'.

HTH,


PS: I could have tried to come up w/ an alternative approach to laying
out the code but, I found the snippet crowded w/ too much logic
specific to your case which makes it hard for me to see the abstract
patterns in play.  Can you try to slim down the snippet and push it to
a public repo somewhere so I can take a look?

--
Bahman



reply via email to

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