title: How to write "install" target in Makefile
body: <p>I am new to <code>Makefile</code> and like to write an <code>install</code> target in <code>Makefile</code>. My <code>Makefile</code> is going to be called from another <code>Makefile</code> like this:</p>
  
  <pre><code>DESTDIR=$(DIR_A) BINDIR=/dir_b make -C $(CURDIR)/xxxx/yyy all
  </code></pre>
  
  <p>where <code>/xxxx/yyy</code> is where my <code>Makefile</code> is located.</p>
  
  <p>My <code>Makefile</code> is going to generate 2 binaries that I like to install them i.e. by install, I mean to copy both of the binaries to a specific directory (<code>BINDIR</code>) and make them executable.</p>
  
  <p>How should I write the <code>install</code> target in this case if my 2 binaries are generated in <code>/aaaa/bbbb/bin</code> folder?</p>