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/ -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20131231111602.ga15...@x230-buxy.home.ouaza.com