title: How to find the line number of an error in a Makefile?
body: <p>I am running the following command:</p>
  
  <blockquote>
    <p>make -f makefile.gcc</p>
  </blockquote>
  
  <p>And the output is:</p>
  
  <blockquote>
    <p>make: -c: Command not found</p>
  </blockquote>
  
  <p>How can I find out which line is causing the error? The makefile is hundreds of lines long and there's no way of figuring it out otherwise.</p>
  
  <p>I tried the <code>-d</code> switch, but that didn't print any useful information.</p>