bug-make
[Top][All Lists]
Advanced

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

Re: all commands should be echoed with "make -d"


From: David Highley
Subject: Re: all commands should be echoed with "make -d"
Date: Tue, 15 Feb 2011 07:30:51 -0800 (PST)

"Jonathan Nieder wrote:"
> 
> Hi Paul et al,
> 
> Vincent Lefevre wrote[1]:
> 
> > Debugging would be much easier if all commands are echoed (i.e.
> > including those starting with '@') with "make -d". I suggest
> > adding the --debug option "e (echo)" for this purpose.
> 
> Sounds like a good idea, and I don't know of anything existing like
> this.
> 
> Does it make sense?  Any hints for a person wanting to implement it?

Why do we need to modify make when what your asking for is easily
created by thoughtful makefile construction. If you preface your target
rules with a macro, say MKDBG, default setting it to "@" then you have a
silent build. When you need to bug on the command line just add "MKDBG="
and now all target rules get echoed. You can vary this by adding
different macros if you need varying amounts of output, much more
flexible and is accomplished without any software change.

> 
> [1] http://bugs.debian.org/451092
> 
> _______________________________________________
> Bug-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-make
> 



reply via email to

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