From: Karl Hasselström Date: Sun, 18 Jun 2006 14:44:47 GMT Subject: Re: [PATCH] auto-detect changed $prefix in Makefile and properly rebuild to avoid broken install Message-ID: <20060618144447.GB2446@diana.vm.bytemark.co.uk> In-Reply-To: <7vzmga1y9k.fsf@assigned-by-dhcp.cox.net> On 2006-06-18 04:47:19 -0700, Junio C Hamano wrote: > Thanks for the explanation. > > If that's the case, I think it makes the original problem Santi > brought up a non-issue. In this sequence: > > make prefix=/home/santi/usr > make install prefix=/home/santi/usr/stow/git > cd /home/santi/usr/stow/ > stow -v git > > the building phase could have used the same prefix as the install > phase uses, and git can find its subprograms in gitexecdir (= > ~/usr/stow/git/bin) just fine. It probably is even slightly more > efficient since it does not have to go through the symlink stow > installs. Yes, exactly. I've always built git like this: $ make prefix=/usr/local/stow/git $ sudo make prefix=/usr/local/stow/git install $ cd /usr/local/stow $ sudo stow git It works for all other programs I've tried too (most of which only require me to specify the prefix once, with ./configure --prefix=...). The programs never need to know about the symlinks; they're only there for when other programs need to access them (via PATH, etc.). -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle