Re: dh: different dh option for -indep
Hi,
On Mon, 30 Dec 2013, Andreas Metzler wrote:
> Assuming foo-doc is arch independent and therefore not built on -B this
> should work:
>
> MYDHMODS := $(shell if dh_listpackages | grep -q foo-doc ; \
> then echo "--with autoreconf,sphinxdoc" ; \
> else echo "--with autoreconf" ; fi)
>
> %:
> dh $@ $(MYDHMODS)
Nice trick! Still, this is a wrong optimization IMO. This complexifies the
packaging for no important gain.
It could be different if the package was one of those required to
bootstrap a new architecture but for a random package, it's just easier
and more maintainable to keep the sphinxdoc build-dep in Build-Depends.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
Reply to: