Hrvoje Niksic <[EMAIL PROTECTED]> writes:

> Karl Eichwalder <[EMAIL PROTECTED]> writes:
> 
> > 'wget' doesn't support the DESTDIR feature which helps to build
> > proper RPM packages and allows to install into "foreign" directories
> > without affecting compiled in paths.  Let me quote from the
> > 'automake' manual:

> The GNU coding standards don't mention DESTDIR, so I assume it's an
> Automake thing.  In Wget, you can just temporarily set `prefix':
> 
> make install prefix=/wherever

I'm sorry.  It looks to me as if it should be added at soem time.  The
automake manual points to the make manual -- but the make manual doesn't
mention it either.  Richard, will you please add it to the documents?

> It makes sense only if the same result cannot be achieved through
> prefix.

Often it works the same but it's subtly different.  If you say:

     make install prefix=/var/tmp/host2/usr

you'll see that /var/tmp/host2/usr is hardcoded into the binary:

    ke@tux:~/Projects/wget/wget> strings src/wget | grep /etc/wgetrc
    /var/tmp/host2/usr/etc/wgetrc

What the user most probably wants is:

    make DESTDIR=/var/tmp/host2 prefix=/usr install

I hope you can see what I want to say.

-- 
work : [EMAIL PROTECTED]                          |                   ,__o
     : http://www.suse.de/~ke/             |                 _-\_<,
home : [EMAIL PROTECTED]                     |                (*)/'(*)

Reply via email to