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

Re: Installing git binaries on a non-default directory (Ubuntu)

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 13, 2015, 06:05 UTC
Message-ID
<xmqq7ftg4l73.fsf@gitster.dls.corp.google.com>
In-Reply-To
<loom.20150410T183218-536@post.gmane.org>
Gianpaolo Macario <gianpaolo_macario@mentor.com> writes:
> By some googling and after reading the git sources and the commit logs I 
> assumed that the `RUNTIME_PREFIX` option
> (see <https://github.com/git/git/blob/master/exec_cmd.c>) was designed for 
> that purpose,
I do not think so.

The standard procedure to stage into a temporary with "make install" and then make a tarball is done by using DESTDIR, e.g. something like

  $ make DESTDIR=/var/tmp/gittt ...other args... install
  $ tar zCf /var/tmp/gittt git-version.tar.gz
Previous: Gianpaolo MacarioNext: Macario, Gianpaolo
Message 2 of 4 in “Installing git binaries on a non-default directory (Ubuntu)”
  1. Gianpaolo MacarioApr 10, 2015
  2. Junio C HamanoApr 13, 2015
  3. Macario, GianpaoloApr 13, 2015
  4. Jeff KingApr 23, 2015

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.