title: Makefile with LaTeX dir
body: <p>It is a long time ago, that I worked with GNU make, since then I forgot a lot. :-(</p>
  <p>I have a project, containing some shell scripts and an extra directory with LaTeX documentation.</p>
  <p>The diretory structure could look like this</p>
  <pre><code>.../topdir/
        |
        |-Makefile
        |
        |--data/
        |    |-filea
        |    |-fileb
        |
        |--latex/
        |    |-example.tex
        |    |-awesome-style.sty
        |    |-imagea.png
        |    |-Makefile
  </code></pre>
  <p>In that <code>latex</code>-directory exists a <code>Makefile</code> which is working alright, when I <code>cd</code> into the directory and call <code>make clean</code> or <code>make example</code> ...</p>
  <p>Now, I want the <code>Makefile</code> in the topdir to be the master makefile.  When I am in that directory and say e.g. <code>make example</code> the recipe should be, to change into the <code>latex</code> directory and run <code>make</code> from there, hence using <code>latex/Makefile</code>.</p>
  <p><strong>EDIT</strong>  Of course, when I say <code>make clean</code> in the topdir Makefile, I want the it to also run <code>make clean</code> in the <code>latex</code> dir.</p>
  <p>What is the correct trick?  What must I write in the master makefile?</p>