The make -debug is identical to make -d but you can also specify: make -debug=FLAGS (assuming you have a clean target of course). So if you're only interested in the dodgy target, instead of just make -d which may make a hundred different things, try: make clean
You can greatly reduce the amount of debugging output if you specify the specific target you're interested in. Should give you more than enough information to debug your makefile.īe warned: it will take some time and effort to analyze the output but loading the output into your favorite editor and doing searches will assist a lot.