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 18, 2007, 14:33 UTC
Message-ID
<20070718143329.GD4815@xp.machine.xx>
In-Reply-To
<Pine.LNX.4.64.0707181344520.14781@racer.site>
On Wed, Jul 18, 2007 at 01:48:21PM +0100, Johannes Schindelin wrote:
Show 26 quoted lines
> Hi,
> 
> On Wed, 18 Jul 2007, David Kastrup wrote:
> 
> > Use this, for example, to do
> > rm -rf /opt/git
> > make prefix=/opt/git install
> > make symlinkprefix=/usr/local prefix=/opt/git install-symlinks
> 
> You mean
> 
> 	This target allows you to have git installed in one location,
> 	and have symbolic links to all of the programs installed in 
> 	another	location.  For example, if git was installed to /opt/git
> 	with
> 
> 		make prefix=/opt/git install
> 
> 	you can install symbolic links in /usr/local/bin with
> 
> 		make symlinkprefix=/usr/local prefix=/opt/git \
> 			install-symlinks
> 
> Hmm.  Why not install it with a proper package manager in the correct 
> place to begin with?  Somehow I find so many symbolic links ugly.
> 

Seeing this excellent explantion from Dscho, this sound exactly like a perfect use case for xstow [1].

It allows you to install your application into e.g. /usr/local/stow/git and by running 'xstow git' in /usr/local/stow it would create all the necessary links in /usr/local/{bin,share,doc} or any other place you want.

-Peter
[1]: http://xstow.sourceforge.net/
Previous: Johannes SchindelinNext: Alex Riesen
Message 4 of 8 in “Makefile: create an install-symlinks target”
  1. Makefile: create an install-symlinks targetDavid Kastrup, Jul 18, 2007
  2. David KastrupJul 18, 2007
  3. Johannes SchindelinJul 18, 2007
  4. Peter BaumannJul 18, 2007
  5. Alex RiesenJul 18, 2007
  6. David KastrupJul 18, 2007
  7. 1/2 Makefile: create an install-symlinks targetDavid Kastrup, Jul 18, 2007
  8. 2/2 Makefile: use $(FIND) instead of findDavid Kastrup, Jul 18, 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.