制作 VERBOSE=1 文档吗?
我以为我知道 make VERBOSE=1
是什么以及它的作用。
我可以看到 https://www.gnu.org/ 中明显缺少它software/make/manual/make.html 。
GNU Make 命令行变量定义 VERBOSE=1
记录在哪里?
I thought I knew what make VERBOSE=1
is and what it does.
I can see that it's conspicuously absent from https://www.gnu.org/software/make/manual/make.html .
Where is the GNU Make command-line variable definition VERBOSE=1
documented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GNU制作文档中“明显不存在”的原因是,变量
冗长
完全具有零特殊含义。可能有些makefiles会用
冗长
做一些有趣的事情,但这是因为该特定的makefile是为了专门处理该变量而写的。其他Makefiles会忽略它,或者它具有您认为的其他含义。例如,当您设置
冗长
变量时,由CMake创建的MakeFiles将特别行为,但是由Automake创建的MakeFiles根本不关注它。在Automake Makefiles中,您使用v = 1
不是verbose = 1
。The reason it's "conspicuously absent" from the GNU make documentation, is that the variable
VERBOSE
has zero special meaning to make at all.It may be that SOME makefiles will do something interesting with
VERBOSE
, but that's because that specific makefile is written to treat that variable specially. Other makefiles will ignore it, or it has some other meaning than what you think it does.For example, makefiles that are created by CMake will behave specially when you set the
VERBOSE
variable, but makefiles that are created by automake don't pay any attention to it at all. In automake makefiles, you useV=1
notVERBOSE=1
.