Some recent tests accidentally depended on very new versions of git.
[gitweb.git] / Makefile
index faefffded5bab03380f2bed8fab65db4c054da43..91e0cc08ea514a954bd3bab035baf0eadac6644e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ prefix ?= /usr/local
 mandir ?= $(prefix)/share/man
 gitdir ?= $(shell git --exec-path)
 
+gitver ?= $(word 3,$(shell git --version))
+
 # this should be set to a 'standard' bsd-type install program
 INSTALL ?= install
 INSTALL_DATA = $(INSTALL) -c -m 0644
@@ -13,6 +15,7 @@ default:
        @echo "Just copy it somewhere on your PATH, like /usr/local/bin."
        @echo
        @echo "Try: make doc"
+       @echo " or: make test"
        @false
 
 install: install-exe install-doc
@@ -32,7 +35,10 @@ doc: git-subtree.1
 
 %.xml: %.txt
        asciidoc -b docbook -d manpage -f asciidoc.conf \
-               -agit_version=1.6.3 $^
+               -agit_version=$(gitver) $^
+               
+test:
+       ./test.sh
 
 clean:
        rm -f *~ *.xml *.html *.1