Web lists-archives.com

Re: build 2 similar binary packages from one source tree




On Sun, Dec 24, 2017 at 08:16:19PM +0100, Adam Borowski wrote:
> While autotools in principle do support out-of-tree builds, a particular
> program might still fail.

In practice, this is rare, unless the developer doesn't try to run "make
distcheck" before a build (like they really really should).

The way to do this is:

cd $TOPLEVEL
mkdir build-1 build-2
cd build-1
../configure --this
make
make install DESTDIR=../debian/tmp-1
cd ../build-2
../configure --that
make
make install DESTDIR=../debian/tmp-2

(obviously separated out into the different debian/rules targets, but done as
above for clarity)

> And, most non-autotools non-cmake build systems don't support that at all.

True.

-- 
Could you people please use IRC like normal people?!?

  -- Amaya Rodrigo Sastre, trying to quiet down the buzz in the DebConf 2008
     Hacklab