line-number

How to find the line number of an error in a Makefile?

I am running the following command: make -f makefile.gcc And the output is: make: -c: Command not found 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. I tried the -d switch, but that didn't print any useful information. ...