Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不是 Makefile 专家,我想知道是否有人知道某种分析器或模拟器,它会从最顶层的 Makefile 一直到最里面的 Makefile,每次都向我显示每个变量的值以及它通过规则的顺序。
谢谢你。
make 的大多数实现都提供了一个-d标志,它将导致程序非常详细地打印出它正在执行的所有操作。该-n标志将导致 make 进行试运行,即报告它会做什么但实际上不做。
-d
-n
请注意,make 会产生大量输出,因此您可能希望将其重定向到文件以供以后阅读。