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

From: Junio C Hamano <[email-masked]>
Date: Sun, 12 Apr 2015 23:05:36 -0700

Gianpaolo Macario <[email-masked]> 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