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