From: Peter Baumann Date: Sun, 29 Jul 2007 22:26:04 GMT Subject: Re: [PATCH] Makefile: create an install-symlinks target 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: > [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 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