开发者

GNU make show only error

开发者 https://www.devze.com 2023-03-06 19:57 出处:网络
Is it possible to configure GNU make to only show error. make --no-print-directory suppres开发者_运维知识库ses all the Entering/Leaving messages. similarly I don\'t want to see \"make[4]: Nothing to b

Is it possible to configure GNU make to only show error. make --no-print-directory suppres开发者_运维知识库ses 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.


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.

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.

0

精彩评论

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

关注公众号