On Sat, Jun 23, 2012 at 03:23:03PM +0200, Arno Töll wrote:
> On 23.06.2012 15:17, Marc Haber wrote:
> > How can I build two flavors of a program with different configure
> > parameters if upstream does not properly handle out-of-tree building
> > and I do not want to ditch dh?
> 
> You copy the source tree as a preparation and recurse into all flavors
> for the configure/build/(install) stages. Take a look at the Apache 2.2
> source package for a (complex) example.

Better: link it.

If you want to be able to resume partial builds as well, the rules are:

tree-stamp:
        dh_testdir
        mkdir flavour1
        cp -ldpR dir1 dir2 dir3 flavour1/
        mkdir flavour2
        cp -ldpR dir1 dir2 dir3 flavour2/
        touch tree-stamp

-- 
I was born an ugly, dumb and work-loving child, then an evil midwife
replaced me in the crib.


--
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/20120623141844.ga26...@angband.pl

Reply via email to