title: Subdirectories and Makefiles
body: <p>I think this is a question that has been asked many times but I cannot find the <em>right</em> way to do it.</p>
  
  <p>I have the following structure:</p>
  
  <pre><code>project/
  project/Makefile
  project/code
  project/code/*.cc
  project/code/Makefile
  </code></pre>
  
  <p>When I am in the directory 'project/code' and call "make project_code" my code is compiling correctly.</p>
  
  <p>I would like to do that when I am in 'project/', just calling "make project_code" as if I was in 'project/code'.</p>
  
  <p>The makefile 'project/Makefile' will contain other rules (such as 'install') and some rules to compile as if I was in 'project/code'. And for that, I am requesting your help... Thanks.</p>