threads / discuss / 32536

[Feature request] make git buildable from a separate directory

Subject: [Feature request] make git buildable from a separate directory

## tl;dr

2 messages between Jan 5, 2013 and Jan 6, 2013.

replies: 1people: 2as markdown or json

Manlio Perillo· Jan 5, 2013, 20:52 UTC · lore
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.

Many C projects I have seen (based on autoconf, but not always - like Nginx) allow the project to be build in a separate directory, in order to avoid to pollute the working directory with compiled files.

Unfortunately this seems to not be possible with Git. The Makefile seems quite complex to me, so I'm not sure to be able to change it to do what I want, without breaking it.

Thanks  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlDoknUACgkQscQJ24LbaUTw/QCdHbphkU3Mepo98D07yLaj3YyF 5I4Anii94QDHsC1zm2Jp1hy2X/JFa/NE =vV1z -----END PGP SIGNATURE-----

Jonathan Nieder· Jan 6, 2013, 00:49 UTC · re: Manlio Perillo · lore

Re: [Feature request] make git buildable from a separate directory

Hi Manlio,
Manlio Perillo wrote:
Show 5 quoted lines
> Many C projects I have seen (based on autoconf, but not always - like
> Nginx) allow the project to be build in a separate directory, in order
> to avoid to pollute the working directory with compiled files.
>
> Unfortunately this seems to not be possible with Git.

I believe the Cygwin build[1] does this, so that could be a starting point if you want to work on it.

They use the VPATH variable[2].

Hope that helps, Jonathan

[1] http://cygwin.com/ml/cygwin/2012-02/msg00391.html [2] https://www.gnu.org/software/make/manual/html_node/General-Search.html#General-Search

← back to recent threads