将自定义代码添加到 Automake 生成的 Makefile 中

发布于 2024-09-08 17:11:44 字数 68 浏览 1 评论 0原文

假设我想向 Automake 生成的 Makefile 添加运行时条件。有什么办法可以告诉 Automake 这个条件吗?

Suppose I want to add a runtime conditional to a Makefile generated by Automake. Is there any way to tell Automake about this conditional?

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

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

发布评论

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

评论(1

抱着落日 2024-09-15 17:11:44

你问了一个非常笼统的问题,所以我只能提供一个非常笼统的答案。 automake 会解析您项目的 Makefile.am 以生成 Makefile.in 文件,最终生成 Makefile。在大多数情况下,您通常只需将自定义规则添加到 Makefile.am 即可(假设这在您的控制之下)。请参阅此处了解更多详细信息或谷歌 Makefile.am

You've asked a pretty general question so I can only provide a pretty general answer. Your project's Makefile.am is what automake parses to produce the Makefile.in file which ultimately produces the Makefile. You can generally just add your custom rules to Makefile.am for most cases (assuming this is under your control). See here for more details or google Makefile.am

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