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

Re: Separate Build dirs



On 08-May-2002 Leo Costela wrote:
> Hi there
> 
> I'm packing Ickle and it creates two packages, ickle and ickle-gnome
> that _can_ coexist and have diferent binary names for the gnome and
> non-gnome versions. I have to reconfigure to build the two diferent
> versions and the debian/rules I'm using now has a pretty ugly method of
> doing that, building it twice in the same dir.
> I know there was a thread some time ago that dealt with this situation
> and the suggestion was to use two separate build dirs to compile
> independent trees, but how precisely do I do that, what's the cleanest
> way to do it in debian/rules?
> 

if the program builds with a configure script try this by hand then move it
into the rules file.

cd /path/to/src
mkdir build
cd build
../configure --options-I-want
make
cd ..
mkdir other_build
../configure --other-options
make

If not there is nothing wrong with:

./configure
make
make install
make distclean
./configure
make
make install


-- 
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: