Re: Problem setting a variable inside a target

2023-09-24 Thread Martin Dorey
> The eval statement below highlighted in red is not working Perhaps you'd expect to see "BADGER is wombat" from: mad@shuttle:~/tmp/wolf-2023-09-24$ cat Makefile default:   $(eval BADGER = wombat) ifeq ($(BADGER),wombat)   echo BADGER is wombat else   echo BADGER is not wombat endif

Problem setting a variable inside a target

2023-09-24 Thread Ed L Wolf
Hello I am having some trouble trying to set a variable inside a target. When reading the variable, it comes up blank. Below is my make file code. The eval statement below highlighted in red is not working. Can you provide some assistance please? I am using GNU Make 4.1