Is there any way for "make" to echo commands
Is there a way to have make
echo commands that are manually suppressed with @
in the makefile? I can't find this 开发者_JAVA百科in the help or man page, it just says "--quiet" to do the opposite.
- 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
cmake
then callmake
withmake VERBOSE=1
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.
精彩评论