bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Trace variable assignment


From: Luke Diamand
Subject: [PATCH] Trace variable assignment
Date: Sat, 20 Jun 2015 13:58:28 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]