[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using dh to build >1 binary package with different configure options



On Fri, Aug 12, 2011 at 10:18:52AM +0200, Gergely Nagy wrote:
> Tony Houghton <h@realh.co.uk> writes:
> 
> > I'm pretty sure I once read something about how to get a single source
> > package to build multiple binary packages from the same source with
> > different configure options. Unfortunately I can't remember what I read
> > and it didn't apply to dh anyway. Can anyone recommend a guide to doing
> > this with dh?
> 
> If you're using short form dh, this would be one way to do it:
> 
> 	cd debian/build-gtk3 && make
> 
> 	cd debian/build-gtk2 && make install DESTDIR=$(CURDIR)/debian/pkg-gtk2

Note make has a '-C' option to avoid the cd:

  make -C debian/build-gtk3

  make -C debian/build-gtk3 install DESTDIR=$(CURDIR)/debian/pkg-gtk2


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

Attachment: signature.asc
Description: Digital signature


Reply to: