git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys
Message 2 of 4 in “Allow building GIT in a different directory from the source directory”
  1. Allow building GIT in a different directory from the source directoryHan-Wen Nienhuys, Dec 8, 2006
  2. Jakub NarebskiDec 8, 2006
  3. Han-Wen NienhuysDec 8, 2006
  4. Alex RiesenDec 9, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.