Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a bad time trying to generate some documentation for a shared library within debian/rules. I asked a question earlier about which target to use for generating the documentation.

My problem now is that the target override_dh_build-indep isn't being built when I run debuild. I inserted an echo statement at the top of the % target and discovered that debuild builds the following targets:

  • clean
  • build
  • install

It would seem that build-indep isn't even being built. Am I missing something?

share|improve this question
Is the source somewhere? Maybe try override_dh_auto_build-indep? You can play around and see what targets dh is actually running with dh binary --no-act – andrewsomething Apr 9 '13 at 5:06
@andrewsomething: Here are the Debian files. – Nathan Osman Apr 9 '13 at 5:17

I stumbled back on this question today. So I took the time to actually grab the code and figure this out. It seems like my comment above is correct. Use the override_dh_auto_build-indep target to build the docs.

This diff was able to produce a doc package with the doxygen generate docs building in a clean raring pbuilder.

=== added file 'debian/nitroshare-doc.install'
--- debian/nitroshare-doc.install   1970-01-01 00:00:00 +0000
+++ debian/nitroshare-doc.install   2013-07-01 18:29:50 +0000
@@ -0,0 +1,1 @@
+doc/* usr/share/doc/nitroshare-doc/

=== modified file 'debian/rules'
--- debian/rules    2013-07-01 18:07:18 +0000
+++ debian/rules    2013-07-01 18:09:03 +0000
@@ -7,3 +7,6 @@

    dh $@
+   doxygen

Though this doesn't really answer your question, it does solve your problem...

share|improve this answer

Looking at the dh source, it looks like behaviour changed here since compatibility level 9. Since then, I think build might correctly call build-indep. Try bumping debian/compat to 9 and bump your debhelper Build-Depends accordingly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.