title: How to echo date to file via a Makefile?
body: <p>I am using a Makefile for my projects. I need my makefile to echo the date and my computer name to a file:</p>
  
  <pre><code>files:
      echo " *      Author: $(whoami)" &gt;&gt; myFile
      echo " *  Created on: $(date +%D)" &gt;&gt; myFile
  </code></pre>
  
  <p>I would assume an file looking like this:</p>
  
  <pre><code>*      Author: eDeviser
  *  Created on: 02.01.2017 
  </code></pre>
  
  <p>Nevertheless it looks like this:</p>
  
  <pre><code>*      Author:
  *  Created on:
  </code></pre>
  
  <p>I tried to type the two lines directly into my terminal. This works very well:</p>
  
  <pre><code>$echo " *      Author: $(whoami)" &gt;&gt; myFile
  $echo " *  Created on: $(date +%D)" &gt;&gt; myFile
  $cat myfile
   *  Created on: 01/02/17
   *      Author: lukas
  </code></pre>
  
  <p>Where is my mistake? </p>