title: Makefile Use Shell to create variables
body: <p>I am using make's shell command to populate some variables, and on output it indicates that they are being set to the values I expect. However when I pass them to my make recipes they all show up empty. I suspect make is doing some odd parsing on the results. Eg: </p>
  
  <pre><code>MyTarget: $(MySources)
      LINE='$(shell cat $&lt; | grep GIMME_THE_LINE_I_WANT)'
      CH9=$(shell echo $(LINE) | cut -b9)
      echo $(CH9) # doesn't print anything
  </code></pre>
  
  <p>I checked my generator commands manually by setting <code>SHELL=sh -XV</code> and when I run identical commands I get the right values, it just looks like bash is 'zeroing' my variables. Any idea what's wrong?</p>