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:

mkdir build-1 build-2
cd build-1
../configure --this
make install DESTDIR=../debian/tmp-1
cd ../build-2
../configure --that
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.


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

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