bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makefile line number when errors


From: Jon Grant
Subject: makefile line number when errors
Date: Thu, 5 May 2011 22:30:04 +0100

Hello

I am interested to know if anyway to see the line number in the
output. I've got some huge makefiles, and is hard to track down the
line with the error sometimes. I include an example below.

On Windows this looks like:

c:\>make -f test.mk
unknown-exe
process_begin: CreateProcess(NULL, unknown-exe, ...) failed.
make (e=2): The system cannot find the file specified.
make: [build] Error 2 (ignored)


On GNU+Linux this looks like:

$ make -f test.mk
unknown-exe
make: unknown-exe: Command not found
make: [build] Error 127 (ignored)




Would be great if it could output:

"make: test.mk:5 unknown-exe: Command not found"


Not really sure why, but the - on the beggining of the "-unknown-exe"
seems to cause the error to be (ignored).

Please keep my email address included in any replies.

Best regards, Jon




# example makefile

build:
        -unknown-exe

#end example makefile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]