Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 95c62fb

Browse files
peffgitster
authored andcommitted
subtree: add makefile target for html docs
The Makefile currently builds the roff manpage, but not the html form. As some people may prefer the latter, let's make it an option to build that, too. We also wire it into "make doc" so that it is built by default. This patch does not build or install it as part of "install-doc"; that would require extra infrastructure to handle installing the html as we do in git's regular Documentation/ tree. That can come later if somebody is interested. Tested-by: Sebastian Schuberth <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 898bbe9 commit 95c62fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/subtree/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ GIT_SUBTREE := git-subtree
2121
GIT_SUBTREE_DOC := git-subtree.1
2222
GIT_SUBTREE_XML := git-subtree.xml
2323
GIT_SUBTREE_TXT := git-subtree.txt
24+
GIT_SUBTREE_HTML := git-subtree.html
2425

2526
all: $(GIT_SUBTREE)
2627

2728
$(GIT_SUBTREE): $(GIT_SUBTREE_SH)
2829
cp $< $@ && chmod +x $@
2930

30-
doc: $(GIT_SUBTREE_DOC)
31+
doc: $(GIT_SUBTREE_DOC) $(GIT_SUBTREE_HTML)
3132

3233
install: $(GIT_SUBTREE)
3334
$(INSTALL) -d -m 755 $(DESTDIR)$(libexecdir)
@@ -46,6 +47,10 @@ $(GIT_SUBTREE_XML): $(GIT_SUBTREE_TXT)
4647
asciidoc -b docbook -d manpage -f $(ASCIIDOC_CONF) \
4748
-agit_version=$(gitver) $^
4849

50+
$(GIT_SUBTREE_HTML): $(GIT_SUBTREE_TXT)
51+
asciidoc -b xhtml11 -d manpage -f $(ASCIIDOC_CONF) \
52+
-agit_version=$(gitver) $^
53+
4954
test:
5055
$(MAKE) -C t/ test
5156

0 commit comments

Comments
 (0)