Re: Is it possible to build `git` such that the install directory and the deployment prefix is not the same?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 28, 2015, 07:54 UTC
- Message-ID
- <xmqqmvty8soc.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAO8bsPDQ2BX1U0D9=pa99_nkEeRWzuN6QzsMw+2u0GPqO6M9kw@mail.gmail.com>
Henry Qin <root@hq6.me> writes:
Show 8 quoted lines
> Here is the question, copied below for your convenience: > > """ > I am attempting to build git from source, and I would like make > install to put the binaries into a directory called dist in my source > directory, so I use the following configure line. > > ./configure --prefix=`pwd`/dist
You probably want to use DESTDIR instead, e.g.
$ make prefix=/usr/local DESTDIR=/var/tmp/dest
The standard way to phrase your question is "how do I 'make install' to install to a fake location so that I can tar up the result into a tarball?" (the key part being "so that..."), I think.