Is there a way to have make echo commands that are manually suppressed with @ in the makefile? I can't find this in the help or man page, it just says "--quiet" to do the opposite.
- 1possible duplicate of How do I force make/gcc to show me the commands?Ciro Santilli OurBigBook.com– Ciro Santilli OurBigBook.com2015-08-14 13:13:34 +00:00Commented Aug 14, 2015 at 13:13
Add a comment |
2 Answers
- The most obvious idea is to change the shell that runs the commands, e.g. modify your makefile and add to the top
SHELL = sh -xv. - Another solution is to change how you call make to
make SHELL='sh -xv' - Lastly if your Makefile is generated by
cmakethen callmakewithmake VERBOSE=1
6 Comments
gatoatigrado
I found out that the nVidia SDK makefiles actually have a VERBOSE option (so make VERBOSE= works), but this is an awesome and more general solution! Thanks!
reinierpost
@gman: You need it to include it into the make command (
make SHELL='sh -xv' or into the Makefile.Ciro Santilli OurBigBook.com
-v had no effect on Dash 0.5.7 (Ubuntu 14.04), I think because it ignores -c commands, which is how Make must be running them. Works for GNU Bash though.gone
A side effect of this approach is that it echoes any function exports that may be in the user's
.bashrc contents for each shell instantiation. |
I run into this question from time to time using cmake because it hides the command. You can use "make VERBOSE=true" to get them to print out.
2 Comments
gatoatigrado
Thanks, I did find this out for the SDK.
reinierpost
This entirely depends on the Makeflile at hand.