Re: Could --debug get an option to trace variable assignments and expansions?

Paul Smith <[email protected]> Fri, 27 Jun 2025 08:22:59 -0400
Newsgroups gmane.comp.gnu.make.bugs
Organization GNU's Not UNIX!
Message-ID <[email protected]>
On Fri, 2025-06-27 at 04:09 -0800, Britton Kerin wrote:
> The many answers here show the appetite for finding out about
> variables:
>     https://stackoverflow.com/questions/16467718/how-to-print-out-a-
> variable-in-makefile
> 
> A variety of different approaches are represented there, but none of
> them cover all situations.
> 
> I think --debug would be the place for some general solution. 
> Thoughts?

I don't really understand what the ask is here, exactly.  Maybe you
could enumerate (at least some of) "all situations"?  By "situations"
do you mean, locations in the makefile?  The $(info ...) function is
available everywhere...

Another option is to use the --print-database (-p) option.  Is that
more what you had in mind?