git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] Makefile: Turn off the configure target by default
@ 2010-10-11  7:47 Michael J Gruber
  2010-10-11  7:59 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 14+ messages in thread
From: Michael J Gruber @ 2010-10-11  7:47 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

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

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-10-12  9:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11  7:47 [RFC PATCH] Makefile: Turn off the configure target by default Michael J Gruber
2010-10-11  7:59 ` Ævar Arnfjörð Bjarmason
2010-10-11  8:39   ` Jakub Narebski
2010-10-11  9:40     ` Ævar Arnfjörð Bjarmason
2010-10-11 12:10       ` Michael J Gruber
2010-10-11 12:37         ` [RFC PATCH] Makefile: point out "make" if "make configure" fails Ævar Arnfjörð Bjarmason
2010-10-11 15:06           ` Jakub Narebski
2010-10-11 20:46             ` Sverre Rabbelier
2010-10-11 15:18         ` [RFC PATCH] Makefile: Turn off the configure target by default Jakub Narebski
2010-10-11 15:28           ` Michael J Gruber
2010-10-11 16:21             ` Ævar Arnfjörð Bjarmason
2010-10-11 16:26               ` Jonathan Nieder
2010-10-12  8:33                 ` Michael J Gruber
2010-10-12  9:10                   ` Tor Arntsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).