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
Han-Wen Nienhuys <hanwen@xs4all.nl>
Date
Dec 12, 2006, 11:50 UTC
Message-ID
<457E979F.9060307@xs4all.nl>
In-Reply-To
<7vbqm9xz8z.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano escreveu:
Show 18 quoted lines
> Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
> 
>> GIT can now be built in a separate builddirectory. This is done as
>> follows:
>>
>>   mkdir build
>>   cd build
>>   $my_git_dir/configure
>>   make
> 
> Somehow making this depend on the use of configure feels wrong,
> since we tried to keep that config.mak.gen built by configure
> strictly optional.  In other words, I think the result of your
> patch should be buildable with or without ./configure in a
> separate directory if we are going to do this.
> 
> Care to explain why it is too cumbersome to handle without
> ./configure magic?

I already tried to explain in a previous thread on the list. See

  http://article.gmane.org/gmane.comp.version-control.git/33487
  
you can still build git in the same directory as source 
without using autoconf, and plain make.
If you insist, I can create a separate
  setup-builddir.sh

to setup the build directory; according to the principle of least surprise, it should happen in the configure script though.

I still don't understand the problem with autoconf; there are already plenty of baroque shell scripts in GIT. I hate writing m4 macros as well, but that's not a problem for GIT users (ie. people who compile GIT).

For them, 
  ./configure ; make ; make check ; make install
is actually the standard way to compile stuff.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 5 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 11, 2006
  2. Junio C HamanoDec 12, 2006
  3. Han-Wen NienhuysDec 12, 2006
  4. Johannes SchindelinDec 12, 2006
  5. Andreas EricssonDec 13, 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.