如何指定 debian 打包“debian/rules”的源目录
我正在使用 dh_make 生成的文件夹结构。 只要我保持这个结构,一切都很好:
./debian/
./debian/rules
./debian/<rest_of_files>
./Makefile
当我执行fakeroot debian/rules clean bin
时,它会make clean &&制作&& make install DESTDIR=properplace
并且一切正常,因为我的 Makefile
具有这些目标。
现在我想将 debian/rules
移动到 packaging/debian/rules
但没有任何效果。
我尝试 fakeroot Packaging/debian/rules clean binary
但显然在 ./packaging/
中查找 Makefile
而不是在 $CWD 中
编辑:
正如其他人所说,构建脚本不喜欢这样,作为解决方法,我从主 makefile 中执行此操作
package-debian:
ln -s packaging/debian debian
fakeroot debian/rules clean binary
rm debian
I'm using the generated folder structure that dh_make
generates.
Everything is good as long as I mantain this structure:
./debian/
./debian/rules
./debian/<rest_of_files>
./Makefile
When I execute fakeroot debian/rules clean binary
it does make clean && make && make install DESTDIR=properplace
and everything works as my Makefile
has those targets.
Now I wanted to move debian/rules
to packaging/debian/rules
but nothing works.
I try fakeroot packaging/debian/rules clean binary
but that apparently looks for Makefile
in ./packaging/
and not in $CWD
EDIT:
As others stated the build scripts don't like this, as a workaround I do this from the main makefile
package-debian:
ln -s packaging/debian debian
fakeroot debian/rules clean binary
rm debian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不要那样做。不支持。
debian
目录必须位于顶层以下。即使你让它以其他方式工作(我对此表示怀疑),每个人都会恨你,因为它会破坏世界上的所有工具。 ;-)
Don't do that. It's not supported. The
debian
directory must be under the top level.Even if you get it to work otherwise, which I doubt, everyone will hate you because it would break every tool in the world. ;-)
您需要调用
packaging
目录中的 Debian 脚本。事情就是这样。You need to invoke the Debian scripts inside your directory
packaging
. That's just the way it is.