[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [un]install-*-local/install-*-hook does not honor DESTDIR
From: |
Alexandre Duret-Lutz |
Subject: |
Re: [un]install-*-local/install-*-hook does not honor DESTDIR |
Date: |
Mon, 27 Dec 2004 01:21:35 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
>>> "Eugene" == Eugene Crosser <address@hidden> writes:
[...]
Eugene> Because "install-*-local" is a natural place to play
Eugene> with files that are *not* located under $prefix
Eugene> (exactly as example in the documentation suggests), you
Eugene> may not want to put $prefix-dependant paths there.
Actually I'd rather change the documentation and use another,
better illustration for install-*-local. Using hard-coded
install-paths always seems an error to me. (The actual example
in the doc would be better written as `sysconf_DATA = afile'.)
Eugene> On the other hand, "make distcheck" configures the
Eugene> package with custom $prefix, and installs into that
Eugene> prefix, *not* specifying "DESTDIR". So, if your
Eugene> *-local target deals with files that are not located
Eugene> under $prefix, "make distcheck" breaks.
Yes. If a user wants to install a package on his account, he
will use something like `./configure --prefix ~/usr'. However
if `make install' tries to write to some hard-coded directory
elsewhere the account, it will fail. So `make distcheck' should
fail too.
--
Alexandre Duret-Lutz