8be4430
From: David Herrmann <dh.herrmann@gmail.com>
8be4430
Date: Mon, 16 Mar 2015 10:17:12 +0100
8be4430
Subject: [PATCH] Documentation/kdbus: support quiet builds
8be4430
8be4430
Add support for quiet builds, just like Documentation/DocBook/Makefile
8be4430
supports.
8be4430
8be4430
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
8be4430
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8be4430
---
8be4430
 Documentation/kdbus/Makefile | 16 +++++++++++++---
8be4430
 1 file changed, 13 insertions(+), 3 deletions(-)
8be4430
8be4430
diff --git a/Documentation/kdbus/Makefile b/Documentation/kdbus/Makefile
8be4430
index d8e6bf37d53b..af87641db416 100644
8be4430
--- a/Documentation/kdbus/Makefile
8be4430
+++ b/Documentation/kdbus/Makefile
8be4430
@@ -15,13 +15,23 @@ XMLFILES := $(addprefix $(obj)/,$(DOCS))
8be4430
 MANFILES := $(patsubst %.xml, %.7, $(XMLFILES))
8be4430
 HTMLFILES := $(patsubst %.xml, %.html, $(XMLFILES))
8be4430
 
8be4430
-XMLTO_ARGS := -m $(srctree)/$(src)/stylesheet.xsl
8be4430
+XMLTO_ARGS := -m $(srctree)/$(src)/stylesheet.xsl --skip-validation
8be4430
 
8be4430
+quiet_cmd_db2man = MAN     $@
8be4430
+      cmd_db2man = xmlto man $(XMLTO_ARGS) -o $(obj) $<
8be4430
 %.7: %.xml
8be4430
-	xmlto man $(XMLTO_ARGS) -o $(obj) $<
8be4430
+	@(which xmlto > /dev/null 2>&1) || \
8be4430
+	 (echo "*** You need to install xmlto ***"; \
8be4430
+	  exit 1)
8be4430
+	$(call cmd,db2man)
8be4430
 
8be4430
+quiet_cmd_db2html = HTML    $@
8be4430
+      cmd_db2html = xmlto html-nochunks $(XMLTO_ARGS) -o $(obj) $<
8be4430
 %.html: %.xml
8be4430
-	xmlto html-nochunks $(XMLTO_ARGS) -o $(obj) $<
8be4430
+	@(which xmlto > /dev/null 2>&1) || \
8be4430
+	 (echo "*** You need to install xmlto ***"; \
8be4430
+	  exit 1)
8be4430
+	$(call cmd,db2html)
8be4430
 
8be4430
 mandocs: $(MANFILES)
8be4430