Re: [PATCH] Allow building GIT in a different directory from the source directory
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 8, 2006, 17:44 UTC
- Message-ID
- <elc84p$4cs$1@sea.gmane.org>
- In-Reply-To
- <elc6j2$vej$1@sea.gmane.org>
Han-Wen Nienhuys wrote:
> From 105d331aee95c0cf3610ac0d2fd4aa7688bd5211 Mon Sep 17 00:00:00 2001
This line is not needed.
Show 10 quoted lines
> From: Han-Wen Nienhuys <hanwen@xs4all.nl> > Date: Fri, 8 Dec 2006 18:07:56 +0100 > > GIT can now be built in a separate builddirectory. This is done as > follows: > > mkdir build > cd build > $my_git_dir/configure > make
Perhaps we should add this to INSTALL file, or to comments in either Makefile, or configure.ac?
Show 13 quoted lines
> In this case, configure creates an empty directory tree based on the > source directory, and wraps Makefiles from source directory in the > build directory. The rest of the functionality is delivered with the > VPATH feature of Make. > > To make this work the Makefile should not mention ./ explicitly in > rules, but rather use $< and $^ to automatically look in the source > dir too. > > perl/Makefile and perl/Makefile.PL need special massaging because perl > is not VPATH aware. > > Signed-off-by: Han-Wen Nienhuys <hanwen@xs4all.nl>
Very nicely written commit message. Good work.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git