我在为共享库创建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
但这没什么区别。
我需要使用什么目标来生成文档?
您正在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
目标。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句