Reputation: 5537
I'm no Makefile expert, and I was wondering if someone knew of some kind of analyzer or simulator that would start from the top-most Makefile all the way down to the inner-most Makefile, each time showing me the value of each variable and the order in which it goes through rules.
Thank you.
Upvotes: 1
Views: 2473
Reputation: 78306
Most implementations of make offer the -d
flag which will cause the program to print out everything it is doing, in great detail. The -n
flag will cause make to do a dry-run, ie report what it would do but not actually do it.
Be warned, make produces a lot of output so you probably want to redirect it to a file for your later perusal.
Upvotes: 1