title: Where do I place the makefile of a project?
body: <p>Assume the directory of a project contains subdirectories such as <code>src</code>, <code>bin</code>, <code>lib</code>, <code>doc</code>, etc. Where do I put the makefile of a project?</p>
  
  <p>For example, </p>
  
  <ul>
  <li><p>some projects put their makefile in <code>src/</code> subdirectory of the root directories of the projects, </p></li>
  <li><p>some projects put their makefiles in the root directory of the project. </p></li>
  </ul>
  
  <p>The second way feels more logically organized to me. Can you provide cases when it is better to put makefile in the root directory, <code>src/</code> or some other directory for what reasons?</p>