[PATCH] Trace variable assignment

2015-06-20 Thread Luke Diamand
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

[PATCH] Add --trace-variable=VAR as makefile debugging aid

2015-06-20 Thread Luke Diamand
Add a debugging option for reporting where a make variable is assigned to. Signed-off-by: Luke Diamand --- doc/make.texi | 8 +++- main.c| 6 ++ make.1| 3 +++ variable.c| 5 + variable.h| 1 + 5 files changed, 22 insertions(+), 1 deletion(-) diff --git a/doc