title: Printing variable from within Makefile
body: <p>I have the following code in my makefile:</p>
  
  <pre><code>S_RES=$(shell cat output)
  
  echo -e "Serial result = \t" $(S_RES)
  </code></pre>
  
  <p>Basically, I want to store the output of the shell command <code>cat output</code> in the S_RES variable, and then echo that variable to the screen (with some explanatory text in front of it). I also want to be able to use the variable later on in my program. I thought I had followed the instructions given in various StackOverflow questions, but it doesn't seem to work.</p>