Re: [AD] [Patch] DESTDIR in make install

[ Thread Index | Date Index | More Archives ]

On Mon, 15 Jul 2002, Peter Wang wrote:

> On 2002-07-15, Stepan <stepan@xxxxxxxxxx> wrote:
> > On Mon, 15 Jul 2002, Peter Wang wrote:
> > > Doesn't "prefix" do this job already?
> >
> > No. DESTDIR allows you to install to different location (e.g. /tmp/bla
> > which can be then packaged) while still using specified prefix so e.g.
> > allegro-config will show /usr instead of /tmp/bla.
> allegro-config is made at configure-time.  I'm not sure, but I don't
> think prefix is used in the C source.
> FYI, I build packages like this:
>     ./configure --prefix=/usr
>     make
>     make install prefix=/tmp/bla/usr
>     cd /tmp/bla
>     su
>     chmod ... ; chmod ...
>     makepkg allegro.tgz

I checked it and it works, however if someone wants to pass different
exec_prefix or different bindir and so on, he must pass the same to make
install. DESTDIR is a general way how to install package to temporary
location (without knowing anything about package configuration) and I like
it more, I must say.

Have a nice day.

Stepan Roh

Mail converted by MHonArc 2.6.19+