title: Make cannot find program to execute. /bin/sh: 1: rm: not found
body: <p>When running any of the commands in the following Makefile, I get the error </p>
  
  <blockquote>
    <p>not found</p>
  </blockquote>
  
  <p>The Makefile in question is <a href="https://github.com/RCoeurjoly/Space-Invaders/blob/master/Makefile" rel="nofollow noreferrer">this</a>.</p>
  
  <p>All the commands fail, including the clean command, that invokes rm.</p>
  
  <p>I have checked the following things:</p>
  
  <ul>
  <li>The programs invoked are installed. I can call them from terminal without problem.</li>
  <li>The PATH of each of them is in $PATH</li>
  <li>I don't have any syntax error in the Makefile itself. Commands begin by the tab character.</li>
  <li>If I add the path of the command when invoking the command, i.e: <code>/bin/rm *bin</code>, it behaves as expected.</li>
  </ul>
  
  <p>As a hack, I am going to add the full path to every command in the Makefile, but I would like to know what makes "make" behave like this.</p>