summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-02-18 14:52:49 +0000
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-02-18 14:52:49 +0000
commit54b48b26e3b4ca7172c5ba46c6430e98f5bb8696 (patch)
tree704a6c9122d99469e7445eeff30e346a7013a472 /Makefile
parent01e039f4dd2b6d78d9d67f7472bc06394f320fc3 (diff)
downloadrabbitmq-server-git-54b48b26e3b4ca7172c5ba46c6430e98f5bb8696.tar.gz
make manpages: Fix xmlto(1) failures handling
Before, a failure from xmlto(1) was ignored and the build continued "happily".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fb5155f077..9f4e342b8f 100644
--- a/Makefile
+++ b/Makefile
@@ -132,7 +132,8 @@ $(TARGETS_IN_RABBITMQ_TEST): $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
grep -E '^xmlto version 0\.0\.([0-9]|1[1-8])$$' >/dev/null || \
opt='--stringparam man.indent.verbatims=0' ; \
xsltproc --novalid $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \
- (xmlto -o $(DOCS_DIR) $$opt man $< 2>&1 | (grep -qv '^Note: Writing' || :)) && \
+ xmlto -o $(DOCS_DIR) $$opt man $< 2>&1 | (grep -v '^Note: Writing' || :) && \
+ test -f $@ && \
rm $<.tmp
# Use tmp files rather than a pipeline so that we get meaningful errors