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

[PATCH 1/4] autoconf: Add configure target to main Makefile

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 8, 2006, 16:35 UTC
Message-ID
<200608081835.23448.jnareb@gmail.com>
In-Reply-To
<200608081834.09271.jnareb@gmail.com>

While at it fill git version information in configure.ac configure target needs autoconf, of course.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
This will make testing autoconf improvements easier
 Makefile     |    7 +++++++
 configure.ac |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 8c225e6..321267b 100644
--- a/Makefile
+++ b/Makefile
@@ -676,6 +676,13 @@ git-instaweb: git-instaweb.sh gitweb/git
 	chmod +x $@+
 	mv $@+ $@
 
+configure: configure.ac
+	rm -f $@ $<+
+	sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
+	    $< > $<+
+	autoconf -o $@ $<+
+	rm -f $<+
+
 # These can record GIT_VERSION
 git$X git.spec \
 	$(patsubst %.sh,%,$(SCRIPT_SH)) \
diff --git a/configure.ac b/configure.ac
index 3c56cc5..e2da891 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@ #                                       
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT([git], [1.4.1], [git@vger.kernel.org])
+AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])
 
 AC_CONFIG_SRCDIR([git.c])
 
-- 
1.4.1.1
Previous: Jakub NarebskiNext: Jakub Narebski
Message 2 of 15 in “autoconf: Some improvements”
  1. 0/4 autoconf: Some improvementsJakub Narebski, Aug 8, 2006
  2. 1/4 autoconf: Add configure target to main MakefileJakub Narebski, Aug 8, 2006
  3. 5/4 autoconf: Mention "make configure" instead of "autoconf" in INSTALLJakub Narebski, Aug 8, 2006
  4. 2/4 autoconf: Error out on --without-shell and --without-perlJakub Narebski, Aug 8, 2006
  5. 3/4 autoconf: Improvements in NO_PYTHON/PYTHON_PATH handlingJakub Narebski, Aug 8, 2006
  6. 4/4 autoconf: Move variables which we always set to config.mak.inJakub Narebski, Aug 8, 2006
  7. 6/4 autoconf: Add forgotten NO_OPENSSL=@NO_OPENSSL@ to config.mak.inJakub Narebski, Aug 8, 2006
  8. autoconf: clean temporary file mak.appendJunio C Hamano, Aug 8, 2006
  9. Jakub NarebskiAug 8, 2006
  10. Junio C HamanoAug 8, 2006
  11. autoconf: Add support for setting CURLDIR, OPENSSLDIR, EXPATDIRJakub Narebski, Aug 9, 2006
  12. Jakub NarebskiAug 10, 2006
  13. Junio C HamanoAug 10, 2006
  14. Jakub NarebskiAug 10, 2006
  15. autoconf: It is --without-python, not --no-pythonJakub Narebski, Aug 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.