Hi! Recently I was trying to figure out where a particular variable was being set in a very complex set of makefiles.
I ended up just getting make to trace assignments to the variable I was interested in, which turned out to be a really effective way to find out what was going on. I've turned this into a patch. With this change, you can ask make to report on changes to FOO like this: make --trace-variable=FOO I hope I'm submitting it in the correct way. Thanks! Luke Luke Diamand (1): Add --trace-variable=VAR as makefile debugging aid doc/make.texi | 8 +++++++- main.c | 6 ++++++ make.1 | 3 +++ variable.c | 5 +++++ variable.h | 1 + 5 files changed, 22 insertions(+), 1 deletion(-) -- 2.4.4.598.gd7bed1d _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make