编辑现有的 make 系统
我需要编辑哪个文件才能将其他文件添加到现有 make 系统?共有三个文件:
Makefile.am 生成文件.in Makefile
它们都包含有关正在使用的源的信息。我认为它是 Makefile.am,因为在 Makefile.in 中它说“由 automake 生成”。但我的问题是:如何告诉系统使用我的更改重新生成 Makefile,而不更改其他任何内容?
Which file would I need to edit to add additional files to an existing make system? There are three files:
Makefile.am
Makefile.in
Makefile
They all contain information about the sources that are being used. I assume it is the Makefile.am, becaue in Makefile.in it says "generated by automake". My question is though: How can I tell the system to regenerate Makefiles with my changes, but without changing anything else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对
Makefile.am
进行修改,然后运行 make
。这应该触发对automake
的调用(以重新生成Makefile.in
),然后调用configure
来重新生成Makefile
。在某些项目中,这些重建规则被禁用,并且不会发生任何事情。在这种情况下,您必须首先运行
./configure --enable-maintainer-mode
才能启用它们。Make your modifications to
Makefile.am
, and runmake
. This should trigger a call toautomake
(to regenerateMakefile.in
) and then toconfigure
to regeneratedMakefile
.In some projects these rebuild rules are disabled and nothing will happen. In that case you have to run
./configure --enable-maintainer-mode
first to enabled these.