Could anyone please explain why following:
export PATH:=$(PATH):~/bin2
B:=$(shell PATH=$(PATH) testXq.sh)
$(warning $(B))
Is working properly showing results of run of the ~/bin2/testXq.sh, while following:
export PATH:=$(PATH):~/bin2
B:=$(shell testXq.sh)
$(warning $(B))
Returns an error:
make: testXq.sh: Command not found
I am on gmake v4.0