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

[RFC PATCH] Makefile: Turn off the configure target by default

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Oct 11, 2010, 07:47 UTC
Message-ID
<36e21bdafd75e95f1e13437f81067c71c7390408.1286783121.git.git@drmicha.warpmail.net>

For most software packages, untar-autoconf/make configure-configure-make is the preferred way to build the package; not so for Git. But the presence of the make target makes people believe so.

Try and make people use "make configure" only when they are sure they need to.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
    This does not help with people running autoconf themselves, of course.
    But we keep answering questions about failed configure attempts.
    
    On an annecdotical note: When I decided to switch to a dvcs, I failed building
    Git (with configure) and tried out hg instead. Imagine!
 Makefile |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 1f1ce04..430c096 100644
--- a/Makefile
+++ b/Makefile
@@ -1744,11 +1744,18 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : unimplemented.sh
 endif # NO_PYTHON
 
 configure: configure.ac
+ifdef USEAUTOCONF
 	$(QUIET_GEN)$(RM) $@ $<+ && \
 	sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
 	    $< > $<+ && \
 	autoconf -o $@ $<+ && \
 	$(RM) $<+
+else
+	@echo "Using the Makefile and defining variables in config.mak is the"
+	@echo "preferred way of building Git. Please use"
+	@echo "USEAUTOCONF=1 make configure"
+	@echo "if you are really sure you need configure."
+endif
 
 # These can record GIT_VERSION
 git.o git.spec \
-- 
1.7.3.1.184.g5b1fd
Next: Ævar Arnfjörð Bjarmason
Message 1 of 14 in “Makefile: Turn off the configure target by default”
  1. Makefile: Turn off the configure target by defaultMichael J Gruber, Oct 11, 2010
  2. Ævar Arnfjörð BjarmasonOct 11, 2010
  3. Jakub NarebskiOct 11, 2010
  4. Ævar Arnfjörð BjarmasonOct 11, 2010
  5. Michael J GruberOct 11, 2010
  6. Makefile: point out "make" if "make configure" failsÆvar Arnfjörð Bjarmason, Oct 11, 2010
  7. Jakub NarebskiOct 11, 2010
  8. Sverre RabbelierOct 11, 2010
  9. Jakub NarebskiOct 11, 2010
  10. Michael J GruberOct 11, 2010
  11. Ævar Arnfjörð BjarmasonOct 11, 2010
  12. Jonathan NiederOct 11, 2010
  13. Michael J GruberOct 12, 2010
  14. Tor ArntsenOct 12, 2010

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.