Is there any way for “make” to echo commands

前端 未结 2 999
失恋的感觉
失恋的感觉 2021-02-07 09:22

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

相关标签:
2条回答
  • 2021-02-07 09:58

    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 讨论(0)
  • 2021-02-07 10:01

    The most obvious idea is to change the shell that runs the commands, e.g. add:

    SHELL = sh -xv
    

    to your makefile.

    0 讨论(0)
提交回复
热议问题