Makefile 分析器/模拟器?

发布于 2024-10-04 02:47:52 字数 114 浏览 0 评论 0原文

我不是 Makefile 专家,我想知道是否有人知道某种分析器或模拟器,它会从最顶层的 Makefile 一直到最里面的 Makefile,每次都会向我显示每个变量的值以及它通过规则的顺序。

谢谢。

I'm no Makefile expert, and I was wondering if someone knew of some kind of analyzer or simulator that would start from the top-most Makefile all the way down to the inner-most Makefile, each time showing me the value of each variable and the order in which it goes through rules.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

回首观望 2024-10-11 02:47:52

大多数 make 实现都提供 -d 标志,这将使程序非常详细地打印出它正在执行的所有操作。 -n 标志将导致 make 进行空运行,即报告它将做什么,但实际上并不执行。

请注意,make 会产生大量输出,因此您可能希望将其重定向到一个文件以供以后细读。

Most implementations of make offer the -d flag which will cause the program to print out everything it is doing, in great detail. The -n flag will cause make to do a dry-run, ie report what it would do but not actually do it.

Be warned, make produces a lot of output so you probably want to redirect it to a file for your later perusal.

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