title: In a makefile, is there a way to redirect $(warning) or $(info) statements to file
body: <p>Note that I do not want to redirect <em>all</em> make output to file. I only want the output from a $(warning) command to file.</p>
  
  <pre><code>someTarget:
      $(warning building $@ using $?) &gt;&gt; someLogFile.txt
  </code></pre>
  
  <p>My example above does not redirect the output from $(warning to someLogFile.  Is there a way to do it?  Maybe redirect it to a variable and then echo that to a file?
  Thanks.</p>