Russ Allbery <[EMAIL PROTECTED]> writes:
> Karl Eichwalder <[EMAIL PROTECTED]> writes:
> > Hrvoje Niksic <[EMAIL PROTECTED]> writes:
> >> $ make # assumes regular prefix
> >> ... build finishes ...
> >> $ make install prefix=/something/different # same as DESTDIR=...
> > Okay, but it isn't userfriendly to ask the user to use different values
> > for the same variable at different stages of the configuration,
> > compilation and installation precess.
> No, every package *should* support the above sequence.
Yes. Look at Tom's mail; he confirms it's easy to support the prefix
and the DESTDIR way at the same time ;) The hard part is to get the
prefix way right.
> It's pretty much the standard way of doing this, and tons of package
> management software in the class stow uses this or something like it
> (I don't know if stow in particular does, but I know that a lot of
> stow-like things do).
Yes, the nice thing with DESTDIR is you only have to say:
./configure --prefix=/gnu/usr --sysconfdir=/gnu/etc
make
make DESTDIR=/var/tmp/package-root install
And without DESTDIR support you would have to repeat
"/var/tmp/package-root" for every directory:
./configure --prefix=/gnu/usr --sysconfdir=/gnu/etc
make
make prefix=/var/tmp/package-root/gnu/usr \
sysconfdir=/var/tmp/package-root/gnu/etc \
install
and you've to hope the rules are carefully arranged and will not touch
files during the install step again (in this regard wget is a perfect
package, too!).
--
work : [EMAIL PROTECTED] | ,__o
: http://www.suse.de/~ke/ | _-\_<,
home : [EMAIL PROTECTED] | (*)/'(*)