解释 make 中的循环依赖
Make 认为我有循环依赖:
$ make blah > /dev/null
make[1]: Circular all <- all dependency dropped.
有没有办法让 make 打印出它的循环路径?这是一个非常大且复杂的 Makefile,不是我编写的,我发现用手弄清楚它几乎是徒劳的。
人们还有其他技术来解决循环依赖吗?
谢谢。
Make thinks I have a circular dependency:
$ make blah > /dev/null
make[1]: Circular all <- all dependency dropped.
Is there a way to get make to print out the path by which it is circular? This is a very big and complicated Makefile that I did not write and I am finding it near futile to figure out by hand.
Any other technologies people have for resolving circular dependencies?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,有两件事:
1)
all <- all
意味着这就是整个路径。没错,all
是all
的先决条件。2)
make[1]
表示这是递归Make。在你的 makefile 中的某个地方有一个$(MAKE) all
命令(可能被变量名、函数、参数等掩盖)。这有帮助吗?
All right, two things:
1)
all <- all
means that that's the whole path. That's right,all
is a prerequisite ofall
.2)
make[1]
means this is recursive Make. Somewhere in your makefile there is a command to$(MAKE) all
(probably obscured by variable names, functions, arguments, whatever).Does that help?