Package: debhelper
Version: 8.1.6
Severity: normal

Quoting dh manual page:

Finally, remember that you are not limited to using override targets in the rules file when using dh.

True. But IME people are very prone to do it wrong.

You can also explicitly define any of the regular rules file targets when it makes sense to do so. A common reason to do this is if your package needs different build-arch and build-indep targets. For example, a package with a long document build process can put it in build-indep to avoid build daemons redundantly building the documentation.

The status quo is that build daemons don't use build-* targets...

   #!/usr/bin/make -f
   %:
           dh $@
build: build-arch build-indep ;
   build-indep:
           $(MAKE) docs
   build-arch:
           $(MAKE) bins

...but even if they did, this example would be incorrect. An autobuilder calls "./debian/rules binary-arch", which calls "dh binary-arch", which calls dh_auto_build, which does not care how the "build" target is defined.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to