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

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to