From: Santi Date: Thu, 15 Jun 2006 11:26:27 GMT Subject: Re: [PATCH] auto-detect changed $prefix in Makefile and properly rebuild to avoid broken install Message-ID: <8aa486160606150426q19b0a661s@mail.gmail.com> In-Reply-To: <0J0V00LDT7B9BU00@mxout2.netvision.net.il> Wed, 14 Jun 2006 22:26 +0300, Yakov Lerner : > 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. Santi