title: Adding dynmaic debugging info to makefile, from the command-line
body: <p>Any ideas how to add dynamic debugging info from the command-line?</p>
  
  <p>For example, given a Makefile:</p>
  
  <pre><code>override MAKEFLAGS=r
  
  ifeq ($(MAKELEVEL),0)
  
  0::
      @$(MAKE)
  
  else
  
  1::
      @echo $(foo)
  
  endif
  </code></pre>
  
  <p>I want to define from the command-line, like this:</p>
  
  <pre><code>make foo='$@'
  </code></pre>
  
  <p>So, that it will echo the command that is being executed.</p>
  
  <p>But, i always get:</p>
  
  <pre><code>0
  </code></pre>
  
  <p>Where the target executed in the recursive make, is '<strong>1</strong>'.</p>