制作 VERBOSE=1 文档吗?

发布于 2025-01-18 01:38:00 字数 271 浏览 3 评论 0原文

我以为我知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫竹語嫣☆ 2025-01-25 01:38:00

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 use V=1 not VERBOSE=1.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文