Skip to content

Commit c7abbb9

Browse files
ChemicalRascalgitster
authored andcommitted
contrib/subtree/Makefile: clean up rules to generate documentation
git:Documentation/Makefile establishes asciidoc/xmlto calls as being handled through their appropriate variables, Hence, change to bring into congruency with. Similarly, MANPAGE_XSL exists in git:Documentation/Makefile, while MANPAGE_NORMAL_XSL does not outside contrib/subtree. Hence, replace MANPAGE_NORMAL_XSL with MANPAGE_XSL. Reviewed-by: Jeff King <[email protected]> Signed-off-by: James Denholm <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2c45009 commit c7abbb9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

contrib/subtree/Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ man1dir ?= $(mandir)/man1
1414
# this should be set to a 'standard' bsd-type install program
1515
INSTALL ?= install
1616

17-
ASCIIDOC_CONF = ../../Documentation/asciidoc.conf
18-
MANPAGE_NORMAL_XSL = ../../Documentation/manpage-normal.xsl
17+
ASCIIDOC = asciidoc
18+
XMLTO = xmlto
19+
20+
ASCIIDOC_CONF = ../../Documentation/asciidoc.conf
21+
MANPAGE_XSL = ../../Documentation/manpage-normal.xsl
1922

2023
GIT_SUBTREE_SH := git-subtree.sh
2124
GIT_SUBTREE := git-subtree
@@ -43,14 +46,14 @@ install-man: $(GIT_SUBTREE_DOC)
4346
$(INSTALL) -m 644 $^ $(DESTDIR)$(man1dir)
4447

4548
$(GIT_SUBTREE_DOC): $(GIT_SUBTREE_XML)
46-
xmlto -m $(MANPAGE_NORMAL_XSL) man $^
49+
$(XMLTO) -m $(MANPAGE_XSL) man $^
4750

4851
$(GIT_SUBTREE_XML): $(GIT_SUBTREE_TXT)
49-
asciidoc -b docbook -d manpage -f $(ASCIIDOC_CONF) \
52+
$(ASCIIDOC) -b docbook -d manpage -f $(ASCIIDOC_CONF) \
5053
-agit_version=$(GIT_VERSION) $^
5154

5255
$(GIT_SUBTREE_HTML): $(GIT_SUBTREE_TXT)
53-
asciidoc -b xhtml11 -d manpage -f $(ASCIIDOC_CONF) \
56+
$(ASCIIDOC) -b xhtml11 -d manpage -f $(ASCIIDOC_CONF) \
5457
-agit_version=$(GIT_VERSION) $^
5558

5659
test:

0 commit comments

Comments
 (0)