title: How I could add dir to $PATH in Makefile?
body: <p>I want to write a Makefile which would run tests. Test are in a directory './tests' and executable files to be tested are in the directory './bin'.</p>
  
  <p>When I run the tests, they don't see the exec files, as the directory ./bin is not in the $PATH.</p>
  
  <p>When I do something like this: </p>
  
  <pre><code>EXPORT PATH=bin:$PATH
  make test
  </code></pre>
  
  <p>everything works. However I need to change the $PATH in the Makefile.</p>
  
  <p>Simple Makefile content:</p>
  
  <pre><code>test all:
      PATH=bin:${PATH}
      @echo $(PATH)
      x
  </code></pre>
  
  <p>It prints the path correctly, however it doesn't find the file x.</p>
  
  <p>When I do this manually:</p>
  
  <pre><code>$ export PATH=bin:$PATH
  $ x
  </code></pre>
  
  <p>everything is OK then.</p>
  
  <p>How could I change the $PATH in the Makefile?</p>