summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-07-01 14:39:11 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-07-01 14:39:11 +0100
commit1a78a06f6105172dc1b10d8e5dfbf666d993bcaa (patch)
tree5a86938ddb96c87e4ed34020b5b0a97646dda1b3 /Makefile
parent6737f81df4bc1bb0a7ed5434b486a10b60627f6e (diff)
parent1e2f98da0e89578725230a6b9ebf3ea30bc3c333 (diff)
downloadrabbitmq-server-git-1a78a06f6105172dc1b10d8e5dfbf666d993bcaa.tar.gz
Merging bug22927
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3c2842ba2c..0f1d0e8564 100644
--- a/Makefile
+++ b/Makefile
@@ -226,9 +226,10 @@ distclean: clean
# xmlto can not read from standard input, so we mess with a tmp file.
%.gz: %.xml $(DOCS_DIR)/examples-to-end.xsl
- xsltproc $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \
- xmlto man -o $(DOCS_DIR) --stringparam man.indent.verbatims=0 $<.tmp && \
- gzip -f $(DOCS_DIR)/`basename $< .xml`
+ xmlto --version | grep -E '^xmlto version 0\.0\.([0-9]|1[1-8])$$' >/dev/null || opt='--stringparam man.indent.verbatims=0' ; \
+ xsltproc $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \
+ xmlto man -o $(DOCS_DIR) $$opt $<.tmp && \
+ gzip -f $(DOCS_DIR)/`basename $< .xml`
rm -f $<.tmp
# Use tmp files rather than a pipeline so that we get meaningful errors