Akim Demaille <[EMAIL PROTECTED]> writes:

>  *  Running @samp{make install} with a different value of @code{prefix}
>  *  from the one used to build the program should @var{not} recompile
>  *  the program.

> This is all I wanted to know.  Just don't use make install prefix=/foo
> unless you want some more fun or know for sure the package hard codes no
> path.

Or unless you're using AFS, which requires installations into a different
set of directories than the programs will run out of due to the way
replication is handled, or unless you're using one of the many package
management systems that want things installed in their own directories and
then make symlinks into /usr/local.

Admittedly, my experience is a bit unusual, but for me setting prefix at
make install time is the *common* case (and packages that don't hard-code
all their paths with make and *only install* with make install annoy me no
end).

DESTDIR is completely unusable for this situation because DESTDIR requires
a complete replication of your final file system structure under the
DESTDIR root, which isn't how this normally works.  DESTDIR is more
intended for doing things like installing packages into a separate file
system that will eventually be mounted as /.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to