test : touch test; echo $(realpath test) echo $(shell realpath test) rm test
When I run make, $(realpath test)
make
$(realpath test)