On 08/12/2017 08:46 AM, Niels Thykier wrote: > I appreciate the idea, but it is not scalable to implement this kind of > filtering in dh_install.
Do you mean that debian/control would have to be parsed on each invocation of dh_install, roughly once per file installed? > Instead, I will recommend that you use > dh_installdocs, dh_installman etc. to install such documentation. They > will under the nodoc profile know what to ignore. I considered that but it won't work. dh_installdocs installs to /usr/share/doc/package and this isn't the directory we want to install to (libfoo-java-doc installs the javadoc for libfoo-java in /usr/share/doc/libfoo-java, and not /usr/share/doc/libfoo-java-doc). Emmanuel Bourg