开发者

Is there any way for "make" to echo commands

开发者 https://www.devze.com 2023-01-29 09:42 出处:网络
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.

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 call make with make 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消