title: Makefile - Get arguments passed to make
body: <p>I have a makefile like so:</p>
  
  <pre><code>.SILENT: #don't echo commands as we run them.
  
  ###
  # here, set $1 (in the latter bash script) to the first make arg.
  # $2 to the second one.
  # et cetera.
  # ($0 being set properly is optional)
  ###
  
  foo:
      echo "you passed to make: $1 $2 $3 $4 $5 $6"
  </code></pre>
  
  <p>so i can do:  </p>
  
  <pre><code>make foo
  You passed to make: foo
  </code></pre>
  
  <p>(don't tell anyone, but i'm creating a 'make me a sandwich' thing)</p>