Makefile 分析器/模拟器?
我不是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
大多数 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.