将 automake 安装文件名设置为与原始文件名不同
是否可以设置 automake 以不同的名称安装文件?例如,假设我的包中有一个 LICENSE 文件,我希望将其安装在 /usr/share/licenses/mypackage 下。是否可以扩展下面的代码,以便将许可证文件安装为“mypackage”?
licensedir = $(datadir)/licenses
license_DATA = LICENSE
我已经在谷歌上搜索了很长一段时间了,但没有找到任何有用的东西。
Is it possible to setup automake to install a file under a different name? For instance, let's say I have a LICENSE file in my package, which I want to be installed under /usr/share/licenses/mypackage. Is it possible to extend the code below, so that the LICENSE file is installed as "mypackage"?
licensedir = $(datadir)/licenses
license_DATA = LICENSE
I've been googling on this for quite some time now, but didn't find anything useful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种可能的解决方案是添加安装挂钩:
A possible solution is to add an install hook: