somevar := apple
export somevar
update := $(shell echo "v=$$somevar")
all:
@echo $(update)
I was hoping to apple as output of command, however it's empty, which makes me think export and :=
variable expansion taking place on different phases. how to overcome this?