Nat*_*man 4 packaging documentation
我在为共享库创建 Debian 打包时遇到了一些问题。该应用程序包含Doxyfile用于为库生成文档的 。我想创建一个libfoo-doc包含文档的包。
为了生成文档,我有以下几行debian/rules:
#!/usr/bin/make -f
build-indep:
cd $(DESTDIR)/share/doc/libfoo-doc ; doxygen
%:
dh $@
Run Code Online (Sandbox Code Playgroud)
然而,这个目标永远不会被构建,尽管这个页面声称:
“二进制目标必须是用户构建从此源包生成的二进制包所需的全部内容。它分为两部分:binary-arch 构建特定于特定架构的二进制包,以及binary-indep 构建那些不是。”
我也尝试更改build-indep为,installdocs但这没有任何区别。
我需要使用什么目标来生成文档?
您正在寻找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.)
Run Code Online (Sandbox Code Playgroud)
关于策略位...build-indep正在调用一个目标,而不是您的build-indep目标。