Skip to contentSkip to conversation

Documentation/Makefile: Allow custom XMLTO binary

PATCH In review [email protected] 2 participants 4 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/Makefile: Allow custom XMLTO binary

From: Dave Borowitz <[email protected]>

---
 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/Makefile +2 -1
index cf5916f..b045628 100644
@@ -47,6 +47,7 @@ man7dir=$(mandir)/man7
 ASCIIDOC=asciidoc
 ASCIIDOC_EXTRA =
 MANPAGE_XSL = manpage-normal.xsl
+XMLTO=xmlto
 XMLTO_EXTRA =
 INSTALL?=install
 RM ?= rm -f
@@ -245,7 +246,7 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
 
 %.1 %.5 %.7 : %.xml manpage-base-url.xsl
 	$(QUIET_XMLTO)$(RM) $@ && \
-	xmlto -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+	$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
 
 %.xml : %.txt
 	$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
Signature · 1 line
1.7.12.1
#1 lore raw
Quoted 4 lines · [email protected] writes:

From: Dave Borowitz <[email protected]>

---

Thanks; the patch sort-of makes sense but makes me wonder what your use case is. Do you have xmlto2 program you want to use in place of xmlto or you have xmlto but not on your $PATH?

Quoted 24 lines
 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/Makefile +2 -1
index cf5916f..b045628 100644
@@ -47,6 +47,7 @@ man7dir=$(mandir)/man7
 ASCIIDOC=asciidoc
 ASCIIDOC_EXTRA =
 MANPAGE_XSL = manpage-normal.xsl
+XMLTO=xmlto
 XMLTO_EXTRA =
 INSTALL?=install
 RM ?= rm -f
@@ -245,7 +246,7 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
 
 %.1 %.5 %.7 : %.xml manpage-base-url.xsl
 	$(QUIET_XMLTO)$(RM) $@ && \
-	xmlto -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+	$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
 
 %.xml : %.txt
 	$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
#2 lore raw
Quoted 10 lines · Junio C Hamano
Quoted 4 lines · [email protected] writes:

From: Dave Borowitz <[email protected]>

---

Thanks; the patch sort-of makes sense but makes me wonder what your use case is. Do you have xmlto2 program you want to use in place of xmlto or you have xmlto but not on your $PATH?

The latter; I can easily symlink it into my $PATH of course. But since I was already specifying ASCIIDOC on the make command line for the same reason, I was surprised to find I couldn't also specify XMLTO, hence the patch.

Quoted 24 lines
Quoted 24 lines
 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/Makefile +2 -1
index cf5916f..b045628 100644
@@ -47,6 +47,7 @@ man7dir=$(mandir)/man7
 ASCIIDOC=asciidoc
 ASCIIDOC_EXTRA =
 MANPAGE_XSL = manpage-normal.xsl
+XMLTO=xmlto
 XMLTO_EXTRA =
 INSTALL?=install
 RM ?= rm -f
@@ -245,7 +246,7 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
 
 %.1 %.5 %.7 : %.xml manpage-base-url.xsl
      $(QUIET_XMLTO)$(RM) $@ && \
-     xmlto -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+     $(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
 
 %.xml : %.txt
      $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
#3 lore raw
Quoted 8 lines · Dave Borowitz
Quoted 7 lines · Junio C Hamano
Quoted 4 lines · [email protected] writes:

From: Dave Borowitz <[email protected]>

---

Quoted 8 lines
Quoted 3 lines

Thanks; the patch sort-of makes sense but makes me wonder what your use case is. Do you have xmlto2 program you want to use in place of xmlto or you have xmlto but not on your $PATH?

The latter; I can easily symlink it into my $PATH of course. But since I was already specifying ASCIIDOC on the make command line for the same reason, I was surprised to find I couldn't also specify XMLTO, hence the patch.

OK. Was just curious.