I came across some weird behavior when using Make recent (v3.81).
Suppose I have the following Makefile:
FOOBAR = $(shell find nonexistentdirectory -iname "foobar" | tr '\n' ' ') all: @echo "Hi" clean: @echo "Hi again"
It seems simple enough, right? It is noteworthy that FOOBAR is a "recursively extended variable", so it cannot be evaluated until I refer to it. Please note that I never turn to him. Also note that nonexistentdirectory does not exist, as you might expect.
Now suppose I install FOOBAR in a shell before I invoke Make target:
compy386$ FOOBAR="stuff" make clean find: nonexistentdirectory: No such file or directory Hi again
Why is FOOBAR ? Obviously, this is due to the fact that the variable is defined in the shell. Should I assume that the user could set the variables in his shell? What am I doing wrong here ?!
source share