On Sun, 4 Sep 2016 15:57:55 -0400 (EDT) Anders Kaseorg <ande...@mit.edu> wrote: > Package: debhelper > Version: 9.20160814 > > It would be useful to have dh $@ --with-indep ADDON, an analogue of dh $@ > --with ADDON that only loads the addon when Architecture: all packages are > being built. > > [...] > > Anders > >
Hi, I learned earlier today that it is possible to implement this via make. The following snippet is from file's d/rules file: """ > %: > dh $@ $(DH_ADDONS) > binary-arch build-arch install-arch: DH_ADDONS=--with autoreconf > binary-indep build-indep install-indep: DH_ADDONS=--with python2,python3 > binary build install: DH_ADDONS=--with autoreconf,python2,python3 """ (If it is any help, remember that dh accepts multiple --with parameters, which might be useful in simplifying your case) I admit it is not as simple or trivial as the thing you requested, but it is available now (and backportable). Thanks, ~Niels