[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more cleaning



On Tue, 2003-05-06 at 18:46, Matti Aarnio wrote:

> > right thing.  With it, you can specify "./configure --mandir=..." as
> > with other autoconfed packages.
> 
>   No.  That doesn't change a thing.  You can still define
> 	  ./configure --mandir=...
>   but usually I don't, nor the  configure script is able to determine
>   automagically what path prefix the system uses for man-pages.
>   Its internal defaults are stupid.  Very stupid.

I see, you are using "prefix" for the "virtual root" when making
packages.  AFAIK this is not how autoconf people meant it; e.g
./configure'd prefix can be included in a binary as a path to some
config files and such.  If you need "virtual root", it is recommended to
use a separate Makefile variable for that, typically DESTDIR

=== Makefile ===
DESTDIR =
prefix = @prefix@
mandir = @mandir@
...
install:
  $(INSTALL) something.8 $(DESTDIR)$(mandir)/man8
================

this way prefix is ./configure -stage thing, and DESTDIR is
install-stage thing, e.g.

./configure --prefix=/usr ...
make
make install DESTDIR=/var/tmp/pkg

Anway, it does not matter too much, so let it be as it was...

Eugene

-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi