Skip to contentSkip to conversation

make git buildable from a separate directory

Feature request Manlio Perillo 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

-----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-----

#1 lore raw

Hi Manlio,

Quoted 5 lines · Manlio Perillo

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