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

Re: autoconfigurable package: how to build two configurations?



Raphael Geissert wrote:

> On 23/09/2007, Steve M. Robbins <steve@sumost.ca> wrote:
>> Hello,
>>
>> Are there any examples of a package that builds two binary packages,
>> each from a distinct run of "configure"?
> 
> You first have to configure, build, install one of the packages and
> then configure, build, install the second one; and in the same target
> create the binary .deb.

Actually, you could use different build directories:

configure: configure-a configure-b

configure-a:
        dh_testdir
        mkdir build-a
        cd build-a && ../configure --flags
        touch $@

configure-b:
        dh_testdir
        mkdir build-b
        cd build-b && ../configure --otherflags
        touch $@

build: build-a build-b

build-a: configure-a
        cd build-a && make

build-b: configure-b
        cd build-b && make


etc etc.

This way you don't need to erase one version to build the other.

-- 

  Felipe Sateler



Reply to: