I am trying to find a way to better understand a complex make structure we have for our project. It includes multiple recursive make files with multiple separate invocations of make inside them.
How to trace which targets/prerequisites are being processed live? I tried putting warning messages before the target name, before the prereq names, and as a first rule.
Unfortunately, because make first preprocess those files the warnings will always showup. Not until you start executing the rules of the target then you see that warning.
But what I really want to see is the time when these targets are first referenced (before their prereqs are being called and before the rules are being executed).
Is there a way to do that?