我正在使用 dh_make
生成的文件夹结构。
只要我保持这个结构,一切都很好:
./debian/
./debian/rules
./debian/<rest_of_files>
./Makefile
当我执行fakeroot debian/rules clean binary
时,它会make clean && make && 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
最佳答案
不要那样做。不支持。 debian
目录必须位于顶级目录下。
即使你让它正常工作(我对此表示怀疑),每个人都会恨你,因为它会破坏世界上的所有工具。 ;-)
关于debian - 如何指定debian打包的源目录 "debian/rules",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4138195/