Marcin Owsiany wrote:
> Consider a following snippet:
> 
> | ifneq (,$(findstring libgadu-doc, $(shell dh_listpackages)))
> | override_dh_installdocs:
> |     dh_installdocs
> |     # nicer name for api docs directory
> |     mv debian/libgadu-doc/usr/share/doc/libgadu-doc/html \
> |        debian/libgadu-doc/usr/share/doc/libgadu-doc/api
> | endif

How can this possibly work? the ifneq is parsed when make parses the
makefile, well before dh does anything. So of course it lists all
packages.

> I've noticed that the example in the 8.9.0 manpage has the ifneq/endif

There is no such example in debhelper 8.9.0, except possibly a fuzzy one
in the Spanish man page, and that one puts the ifneq inside the target,
which I think probably does work. 

The new way to accomplish this is to use override_dh_installdocs-indep

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to