Thread (4 messages) flat view 4 messages, 3 authors, 2016-08-11

Re: [PATCH] Allow building GIT in a different directory from the source directory

From: Jakub Narebski <hidden>
Date: 2016-08-11 20:42:44

Han-Wen Nienhuys wrote:
From 105d331aee95c0cf3610ac0d2fd4aa7688bd5211 Mon Sep 17 00:00:00 2001
This line is not needed.
From: Han-Wen Nienhuys <redacted>
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 <redacted>
Very nicely written commit message. Good work.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help