Merge branch 'aw/contrib-subtree-doc-asciidoctor' into maint
The Makefile rule in contrib/subtree for building documentation learned to honour USE_ASCIIDOCTOR just like the main documentation set does. * aw/contrib-subtree-doc-asciidoctor: subtree: honour USE_ASCIIDOCTOR when set
This commit is contained in:
commit
35049a2343
@ -19,15 +19,27 @@ htmldir ?= $(prefix)/share/doc/git-doc
|
|||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
RM ?= rm -f
|
RM ?= rm -f
|
||||||
|
|
||||||
ASCIIDOC = asciidoc
|
ASCIIDOC = asciidoc
|
||||||
XMLTO = xmlto
|
ASCIIDOC_CONF = -f ../../Documentation/asciidoc.conf
|
||||||
|
ASCIIDOC_HTML = xhtml11
|
||||||
|
ASCIIDOC_DOCBOOK = docbook
|
||||||
|
ASCIIDOC_EXTRA =
|
||||||
|
XMLTO = xmlto
|
||||||
|
|
||||||
|
ifdef USE_ASCIIDOCTOR
|
||||||
|
ASCIIDOC = asciidoctor
|
||||||
|
ASCIIDOC_CONF =
|
||||||
|
ASCIIDOC_HTML = xhtml5
|
||||||
|
ASCIIDOC_DOCBOOK = docbook45
|
||||||
|
ASCIIDOC_EXTRA += -I../../Documentation -rasciidoctor-extensions
|
||||||
|
ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef SHELL_PATH
|
ifndef SHELL_PATH
|
||||||
SHELL_PATH = /bin/sh
|
SHELL_PATH = /bin/sh
|
||||||
endif
|
endif
|
||||||
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
||||||
|
|
||||||
ASCIIDOC_CONF = ../../Documentation/asciidoc.conf
|
|
||||||
MANPAGE_XSL = ../../Documentation/manpage-normal.xsl
|
MANPAGE_XSL = ../../Documentation/manpage-normal.xsl
|
||||||
|
|
||||||
GIT_SUBTREE_SH := git-subtree.sh
|
GIT_SUBTREE_SH := git-subtree.sh
|
||||||
@ -65,12 +77,12 @@ $(GIT_SUBTREE_DOC): $(GIT_SUBTREE_XML)
|
|||||||
$(XMLTO) -m $(MANPAGE_XSL) man $^
|
$(XMLTO) -m $(MANPAGE_XSL) man $^
|
||||||
|
|
||||||
$(GIT_SUBTREE_XML): $(GIT_SUBTREE_TXT)
|
$(GIT_SUBTREE_XML): $(GIT_SUBTREE_TXT)
|
||||||
$(ASCIIDOC) -b docbook -d manpage -f $(ASCIIDOC_CONF) \
|
$(ASCIIDOC) -b $(ASCIIDOC_DOCBOOK) -d manpage $(ASCIIDOC_CONF) \
|
||||||
-agit_version=$(GIT_VERSION) $^
|
-agit_version=$(GIT_VERSION) $(ASCIIDOC_EXTRA) $^
|
||||||
|
|
||||||
$(GIT_SUBTREE_HTML): $(GIT_SUBTREE_TXT)
|
$(GIT_SUBTREE_HTML): $(GIT_SUBTREE_TXT)
|
||||||
$(ASCIIDOC) -b xhtml11 -d manpage -f $(ASCIIDOC_CONF) \
|
$(ASCIIDOC) -b $(ASCIIDOC_HTML) -d manpage $(ASCIIDOC_CONF) \
|
||||||
-agit_version=$(GIT_VERSION) $^
|
-agit_version=$(GIT_VERSION) $(ASCIIDOC_EXTRA) $^
|
||||||
|
|
||||||
$(GIT_SUBTREE_TEST): $(GIT_SUBTREE)
|
$(GIT_SUBTREE_TEST): $(GIT_SUBTREE)
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
Loading…
Reference in New Issue
Block a user