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