@matheusbsbs / matheus-bagliano / commits / 3900145ed7
Fork 0

autoconf: Add configure target to main Makefile

While at it fill git version information in configure.ac configure target needs autoconf, of course. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Aug 8, 2006 at 18:35 UTC 3900145ed72bf1dfd656af6a5b31034e818b425f
3 files changed +9 -2
INSTALL
+1 -1
@@ -16,7 +16,7 @@ install" would not work.
16 Alternatively you can use autoconf generated ./configure script to
17 set up install paths (via config.mak.autogen), so you can write instead
18
19 - $ autoconf ;# as yourself if ./configure doesn't exist yet
19 + $ make configure ;# as yourself
20 $ ./configure --prefix=/usr ;# as yourself
21 $ make all doc ;# as yourself
22 # make install install-doc ;# as root
Makefile
+7
@@ -595,6 +595,13 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
595 chmod +x $@+
596 mv $@+ $@
597
598 +configure: configure.ac
599 + rm -f $@ $<+
600 + sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
601 + $< > $<+
602 + autoconf -o $@ $<+
603 + rm -f $<+
604 +
605 # These can record GIT_VERSION
606 git$X git.spec \
607 $(patsubst %.sh,%,$(SCRIPT_SH)) \
configure.ac
+1 -1
@@ -2,7 +2,7 @@
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 -AC_INIT([git], [1.4.1], [git@vger.kernel.org])
5 +AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])
6
7 AC_CONFIG_SRCDIR([git.c])
8