首页 > 解决方案 > 如何抑制来自 Make 的“是最新的”消息?

问题描述

如何告诉 Make 停止记录

make: `foo.o' is up to date

foo.o 什么时候是最新的?

标签: makefile

解决方案


您可以使用-s/--silent选项make来抑制输出;从文档

‘-s’
‘--silent’
‘--quiet’
Silent operation; do not print the recipes as they are executed. See Recipe Echoing.

它没有这么明确地说明,但这也抑制了其他类型的信息输出。


推荐阅读