title: Installing dependencies in makefile
body: <p>I am new to c and trying to learn how to write a simple makefile for my program on <code>raspbian</code>. My program has a dependency for another program <code>afpfs-ng</code></p>
  
  <p>Is this the correct syntax to make sure the dependent program is downloaded and installed?</p>
  
  <pre><code>all: myprogram.c
          sudo gcc -o myprogram -ansi myprogram.c
  packages:
          sudo apt-get install afpfs-ng    
  clean:
          ($RM) myprogram 
  </code></pre>