git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: create an install-symlinks target

From
PBPeter 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
Previous: Brian Gernhardt
Message 7 of 7 in “Makefile: create an install-symlinks target”
  1. Makefile: create an install-symlinks targetDavid Kastrup, Jul 29, 2007
  2. Makefile: use $(FIND) instead of findDavid Kastrup, Jul 29, 2007
  3. Junio C HamanoJul 29, 2007
  4. Junio C HamanoJul 29, 2007
  5. David KastrupJul 29, 2007
  6. Brian GernhardtJul 29, 2007
  7. Peter BaumannJul 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.