make git version dynamic when building documentation
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
This commit is contained in:
parent
0d31de303f
commit
d20ac24c2f
4
Makefile
4
Makefile
@ -2,6 +2,8 @@ prefix ?= /usr/local
|
|||||||
mandir ?= $(prefix)/share/man
|
mandir ?= $(prefix)/share/man
|
||||||
gitdir ?= $(shell git --exec-path)
|
gitdir ?= $(shell git --exec-path)
|
||||||
|
|
||||||
|
gitver ?= $(word 3,$(shell git --version))
|
||||||
|
|
||||||
# this should be set to a 'standard' bsd-type install program
|
# this should be set to a 'standard' bsd-type install program
|
||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
INSTALL_DATA = $(INSTALL) -c -m 0644
|
INSTALL_DATA = $(INSTALL) -c -m 0644
|
||||||
@ -32,7 +34,7 @@ doc: git-subtree.1
|
|||||||
|
|
||||||
%.xml: %.txt
|
%.xml: %.txt
|
||||||
asciidoc -b docbook -d manpage -f asciidoc.conf \
|
asciidoc -b docbook -d manpage -f asciidoc.conf \
|
||||||
-agit_version=1.6.3 $^
|
-agit_version=$(gitver) $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *~ *.xml *.html *.1
|
rm -f *~ *.xml *.html *.1
|
||||||
|
Loading…
Reference in New Issue
Block a user