title: How to read & print a file content ( some settings ) inside a makefile target?
body: <p>I have this config file ( a plain text file ending in .cfg )</p>
  
  <pre><code># The application name
  learningErlangTesting
  
  # The node name
  mysql_testing
  </code></pre>
  
  <p>Also, I have this Makefile:</p>
  
  <pre><code>ok:
      APP=$(shell cat nodes.cfg | sed -n '2p')
      NODE=$(shell cat nodes.cfg | sed -n '5p')
      echo $(APP)
      echo $(NODE)
  </code></pre>
  
  <p>When I run make ok I get</p>
  
  <pre><code>APP=learningErlangTesting
  NODE=mysql_testing
  echo 
  
  echo 
  </code></pre>
  
  <p>My variables are empty it seems, I cannot print them, nor use them to build a folder path ( which I intend to do after I'll get my hands of them ).</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Many thanks,
  Desmond</p>