简体   繁体   English

GNU make只显示错误

[英]GNU make show only error

Is it possible to configure GNU make to only show error. 是否可以将GNU make配置为仅显示错误。 make --no-print-directory suppresses all the Entering/Leaving messages. make --no-print-directory禁止所有Entering / Leaving消息。 similarly I don't want to see " make[4]: Nothing to be done for install. ". 同样地,我不想看到“ make[4]: Nothing to be done for install. Just the build error. 只是构建错误。

thanks. 谢谢。

make -s won't print any of the commands (as if every command was prefixed by @ ). make -s不会打印任何命令(就好像每个命令都以@为前缀)。 If the commands themselves are printing output, try redirecting standard output away but keeping standard error. 如果命令本身是打印输出,请尝试将标准输出重定向,但保持标准错误。

make -s >/dev/null

However my recommendation would be to let all the output through, because it can be very useful to figure out what's going on. 但是我的建议是让所有输出通过,因为它可以非常有用地弄清楚发生了什么。 Use a tool such as colormake to make it more readable. 使用colormake等工具使其更具可读性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM