GNU make 仅显示错误
是否可以将 GNU make 配置为仅显示错误。 make --no-print-directory
抑制所有进入/离开消息。同样,我不想看到“make[4]:安装无需执行任何操作。
”。只是构建错误。
谢谢。
Is it possible to configure GNU make to only show error. make --no-print-directory
suppresses all the Entering/Leaving messages. similarly I don't want to see "make[4]: Nothing to be done for install.
". Just the build error.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
make -s
不会打印任何命令(就好像每个命令都以@
为前缀)。如果命令本身正在打印输出,请尝试重定向标准输出但保留标准错误。然而,我的建议是让所有输出通过,因为它对于弄清楚正在发生的事情非常有用。使用 colormake 等工具使其更具可读性。
make -s
won't print any of the commands (as if every command was prefixed by@
). If the commands themselves are printing output, try redirecting standard output away but keeping standard error.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.