GNU Make has various options for printing some debugging information at run time. -d prints all debugging information; maybe too much, and maybe not what you need, but you can try to sift it. There are also options, such as -n to run a dry run, -p to print a rule database, -w to print the directory you are in to track problems in complex recursive entries and --warn-undefined-variables to track certain problems with variables.
If none of this works, you can try Remake , which claims to be a fixed GNU make with a debugger. I haven't used it, but from the documentation , it looks like this might help you, and it has some more tips on trying to track errors in the Makefile.
source share