mirror of
https://github.com/git/git.git
synced 2024-06-02 15:16:11 +02:00
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>
This commit is contained in:
parent
d5c31a1ccf
commit
3900145ed7
2
INSTALL
2
INSTALL
|
@ -16,7 +16,7 @@ install" would not work.
|
||||||
Alternatively you can use autoconf generated ./configure script to
|
Alternatively you can use autoconf generated ./configure script to
|
||||||
set up install paths (via config.mak.autogen), so you can write instead
|
set up install paths (via config.mak.autogen), so you can write instead
|
||||||
|
|
||||||
$ autoconf ;# as yourself if ./configure doesn't exist yet
|
$ make configure ;# as yourself
|
||||||
$ ./configure --prefix=/usr ;# as yourself
|
$ ./configure --prefix=/usr ;# as yourself
|
||||||
$ make all doc ;# as yourself
|
$ make all doc ;# as yourself
|
||||||
# make install install-doc ;# as root
|
# make install install-doc ;# as root
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -595,6 +595,13 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
|
||||||
chmod +x $@+
|
chmod +x $@+
|
||||||
mv $@+ $@
|
mv $@+ $@
|
||||||
|
|
||||||
|
configure: configure.ac
|
||||||
|
rm -f $@ $<+
|
||||||
|
sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
|
||||||
|
$< > $<+
|
||||||
|
autoconf -o $@ $<+
|
||||||
|
rm -f $<+
|
||||||
|
|
||||||
# These can record GIT_VERSION
|
# These can record GIT_VERSION
|
||||||
git$X git.spec \
|
git$X git.spec \
|
||||||
$(patsubst %.sh,%,$(SCRIPT_SH)) \
|
$(patsubst %.sh,%,$(SCRIPT_SH)) \
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.59)
|
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])
|
AC_CONFIG_SRCDIR([git.c])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue