This is related to How to trace Makefile targets for troubleshooting? I'm working on an old PowerMac G5. It is alive because I use it for testing older compilers and big-endian, PowerPC.
I'm trying to determine which line in a makefile is causing unexpected EOF while looking for matching ``'
. Our makefile does not use the backtick (we added them for testing this issue); and trial/error and guessing is moving too slow for a makefile with 1000's of lines.
When I run make with --debug
, it fails to print line numbers:
$ make --debug=a
GNU Make 3.82
Built for powerpc-apple-darwin9.8.0
...
Reading makefiles...
Reading makefile `GNUmakefile'...
bash: -c: line 0: unexpected EOF while looking for matching ``'
bash: -c: line 1: syntax error: unexpected end of file
bash: -c: line 0: unexpected EOF while looking for matching ``'
bash: -c: line 1: syntax error: unexpected end of file
bash: -c: line 0: unexpected EOF while looking for matching ``'
bash: -c: line 1: syntax error: unexpected end of file
bash: -c: line 0: unexpected EOF while looking for matching ``'
bash: -c: line 1: syntax error: unexpected end of file
Updating makefiles...
...
make --help
does not appear to discuss it:
$ make --help 2>&1 | grep -i line
$
My first question is, how do I tell GNU make to print line numbers?
My second question is, how is a program that has been around as long as make has so lame with respect to debug support?