I am trying to get a better understanding of debhelper's dh tool. As I understand it, dh is a frontend for various dh_* helper tools. These helper tools can both be called standalone or automatically from the dh tool. Usually a debian/rules file is created which somehow invokes dh and possibly overrides certain dh_* invocations. dh then seems to know which of the dh_* tools it needs to invoke and in which sequence.
The example under /usr/share/doc/debhelper/examples/rules.tiny contains the following as an example for a debian/rules file:
#!/usr/bin/make -f
%:
dh $@
What is the sequence of dh_* helper tools that gets executed by dh as result of this rules file? And more importantly, how does dh determine this sequence and where is this documented.
The sequence of helper tools that will get executed depends on a few things:
build-arch,build-indep,build,clean,install-indep,install-arch,install,binary-arch,binary-indep, andbinary. The meanings of (most of) these are discussed in Debian Policy §4.9.debian/compatfile)--withand--withoutoptions)override_dh_auto_test)As you can see, it could be confusing to document which commands are run, in which order, for all the possible build targets and configuration arrangements (or even just for the most common ones). The way to know, therefore, is to use the
--no-actargument todh, with your build directory set up the way you want it.Here is an example run with the
binarytarget in a dummy build directory I've just made usingdh_make, put into compat level 10. The exact commands or the exact ordering you will see will likely be slightly different: