Re: [PATCH] Makefile: create an install-symlinks target
- From
- Peter Baumann <waste.manager@gmx.de>
- Date
- Jul 29, 2007, 22:26 UTC
- Message-ID
- <20070729222604.GB5753@xp.machine.xx>
- In-Reply-To
- <85lkcyvr4f.fsf@lola.goethe.zz>
On Sun, Jul 29, 2007 at 11:26:08PM +0200, David Kastrup wrote:
Show 19 quoted lines
> [commit text mostly pinched from INSTALL] > > An alternative global installation method making it much easier to > uninstall is to use a package-specific prefix like /opt/git, then > create symlinks from /usr/local into that hierarchy. Uninstalling can > then be achieved by > > # rm -rf /opt/git; find /usr/local -xtype l -delete > > You can create a setup like that after having used one of the above > install recipes with prefix=/opt/git by writing > > # make prefix=/opt/git symlinkprefix=/usr/local install-symlinks > > This works by copying the directory hierarchy of $prefix to > $symlinkprefix (not copying or descending to any directories of the > name git* matched case-insensitively), then linking all the rest. > > Signed-off-by: David Kastrup <dak@gnu.org>
AFAIR I suggested this the last time this came up, but in case you missed it:
Use (x)stow for this. It does exactly what you want. No need to hack the Makefile.
-Peter