我在为共享库创建 Debian 打包时遇到了一些问题。该应用程序包含Doxyfile
用于为该库生成文档的程序。我想创建一个libfoo-doc
包含该文档的包。
为了生成文档,我添加了以下几行debian/rules
:
#!/usr/bin/make -f
build-indep:
cd $(DESTDIR)/share/doc/libfoo-doc ; doxygen
%:
dh $@
然而,尽管本页声称:
“二进制目标必须是用户从此源包构建二进制包所需的全部内容。它分为两个部分:binary-arch 构建特定于特定体系结构的二进制包,binary-indep 构建非特定体系结构的二进制包。”
我也尝试过改变build-indep
,installdocs
但没有什么区别。
我需要使用什么目标来生成文档?
答案1
override_dh_build-indep
您正在寻找命令手册dh
页
OVERRIDE TARGETS
A debian/rules file using dh can override the command that is run at
any step in a sequence, by defining an override target.
To override dh_command, add a target named override_dh_command to the
rules file. When it would normally run dh_command, dh will instead call
that target. The override target can then run the command with
additional options, or run entirely different commands instead. See
examples below. (Note that to use this feature, you should Build-
Depend on debhelper 7.0.50 or above.)
Override targets can also be defined to run only when building
architecture dependent or architecture independent packages. Use
targets with names like override_dh_command-arch and
override_dh_command-indep. (Note that to use this feature, you should
Build-Depend on debhelper 8.9.7 or above.)
关于政策位...build-indep
正在调用一个目标,但不是你的build-indep
目标。