From: Jakub Narebski Date: Tue, 08 Aug 2006 16:35:23 GMT Subject: [PATCH 1/4] autoconf: Add configure target to main Makefile 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 --- 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