Re: [PATCH] auto-detect changed $prefix in Makefile and properly rebuild to avoid broken install
- From
- Yakov Lerner <iler.ml@gmail.com>
- Date
- Jun 15, 2006, 11:40 UTC
- Message-ID
- <f36b08ee0606150440l544455c7r5c52609b360d0f74@mail.gmail.com>
- In-Reply-To
- <8aa486160606150426q19b0a661s@mail.gmail.com>
On 6/15/06, Santi <sbejar@gmail.com> wrote:
Show 15 quoted lines
> Wed, 14 Jun 2006 22:26 +0300, Yakov Lerner <iler.ml@gmail.com>: > > Many times, I mistakenly used 'make prefix=... install' where prefix value > > was different from prefix value during build. This resulted in broken > > install. This patch adds auto-detection of $prefix change to the Makefile. > > This results in correct install whenever prefix is changed. > > I do this each time I install packages from source. I keep them with > "stow" and the usual sequence is: > > make prefix=/home/santi/usr > make install prefix=/home/santi/usr/stow/git > cd /home/santi/usr/stow/ > stow -v git > > so with this auto-detection I'll compile some programs twice.
I'm not familiar with stow. Does stow create some kind of symlinks from /home/santi/usr/stow/git to home/santi/usr ? If so, why can't you use prefix=/home/santi/usr/stow/git both in 'make' and in 'make install' ? Would this work ?
BTW, is it possible to have git use argv[0] to automatically determine the executable_dir without compiled-in paths ?
Yakov