Re: makefile line number when errors

2011-05-11 Thread Edward Welbourne
> Not really sure why, but the - on the beggining of the "-unknown-exe" > seems to cause the error to be (ignored). The command part of a make rule can optionally begin with various characters that modify how make runs the command or responds to the results of running it; a command-line starting w

Re: makefile line number when errors

2011-05-06 Thread Jon Grant
Hello Eli Zaretskii wrote, On 06/05/11 21:23: Date: Fri, 6 May 2011 21:01:24 +0100 From: Jon Grant Cc: bug-make@gnu.org Sorry, perhaps I was unclear. I am interested in the "test.mk:5" text. I don't mind the specific details or error code which is output later in the line. Just the line number

Re: makefile line number when errors

2011-05-06 Thread Jon Grant
On 6 May 2011 16:25, Eli Zaretskii wrote: >> Date: Thu, 5 May 2011 22:30:04 +0100 >> From: Jon Grant >> >> 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

Re: makefile line number when errors

2011-05-06 Thread Eli Zaretskii
> Date: Fri, 6 May 2011 21:01:24 +0100 > From: Jon Grant > Cc: bug-make@gnu.org > > Sorry, perhaps I was unclear. I am interested in the "test.mk:5" text. > I don't mind the specific details or error code which is output later > in the line. Just the line number is my request. Sorry for my misun

Re: makefile line number when errors

2011-05-06 Thread Eli Zaretskii
> Date: Thu, 5 May 2011 22:30:04 +0100 > From: Jon Grant > > 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: > > $ mak

makefile line number when errors

2011-05-06 Thread Jon Grant
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, unkn