From: Jakub Narebski Date: Fri, 08 Dec 2006 17:44:03 GMT Subject: Re: [PATCH] Allow building GIT in a different directory from the source directory Message-ID: In-Reply-To: Han-Wen Nienhuys wrote: > From 105d331aee95c0cf3610ac0d2fd4aa7688bd5211 Mon Sep 17 00:00:00 2001 This line is not needed. > From: Han-Wen Nienhuys > 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? > 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 Very nicely written commit message. Good work. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git