summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Ben Walton <bwalton@artsci.utoronto.ca>2009-11-13 20:29:40 -0500
committerLibravatar Avery Pennarun <apenwarr@gmail.com>2009-11-15 12:18:15 -0500
commitd20ac24c2fe860dba99b40d76fe371a323e9918d (patch)
tree4b86ee6e9cf80054cd50ebbe95295be7cbacb14c /Makefile
parentadd installation support to Makefile (diff)
downloadtgif-d20ac24c2fe860dba99b40d76fe371a323e9918d.tar.xz
make git version dynamic when building documentation
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index faefffded5..9b204bdcae 100644
--- 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
@@ -32,7 +34,7 @@ doc: git-subtree.1
%.xml: %.txt
asciidoc -b docbook -d manpage -f asciidoc.conf \
- -agit_version=1.6.3 $^
+ -agit_version=$(gitver) $^
clean:
rm -f *~ *.xml *.html *.1