make git version dynamic when building documentation
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Ben Walton committed
Nov 13, 2009 at 20:29 UTC
d20ac24c2fe860dba99b40d76fe371a323e9918d
1 file changed
+3
-1
Makefile
+3
-1
@@ -2,6 +2,8 @@ prefix ?= /usr/local
2
mandir ?= $(prefix)/share/man
3
gitdir ?= $(shell git --exec-path)
4
5
+gitver ?= $(word 3,$(shell git --version))
6
+
7
# this should be set to a 'standard' bsd-type install program
8
INSTALL ?= install
9
INSTALL_DATA = $(INSTALL) -c -m 0644
@@ -32,7 +34,7 @@ doc: git-subtree.1
34
35
%.xml: %.txt
36
asciidoc -b docbook -d manpage -f asciidoc.conf \
35
- -agit_version=1.6.3 $^
37
+ -agit_version=$(gitver) $^
38
39
clean:
40
rm -f *~ *.xml *.html *.1