Makefile variable initialization and export
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-05-15T02:46:45Z
Indexed on
2010/05/15
2:54 UTC
Read the original article
Hit count: 263
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?
© Stack Overflow or respective owner