LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Herrmann <dh.herrmann@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Greg KH <gregkh@linuxfoundation.org>,
	daniel@zonque.org, tixxdz@opendz.org,
	David Herrmann <dh.herrmann@gmail.com>
Subject: [PATCH 3/4] Documentation/kdbus: support quiet builds
Date: Mon, 16 Mar 2015 10:17:12 +0100	[thread overview]
Message-ID: <1426497433-22846-3-git-send-email-dh.herrmann@gmail.com> (raw)
In-Reply-To: <1426497433-22846-1-git-send-email-dh.herrmann@gmail.com>

Add support for quiet builds, just like Documentation/DocBook/Makefile
supports.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
---
 Documentation/kdbus/Makefile | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/Documentation/kdbus/Makefile b/Documentation/kdbus/Makefile
index d8e6bf3..af87641 100644
--- a/Documentation/kdbus/Makefile
+++ b/Documentation/kdbus/Makefile
@@ -15,13 +15,23 @@ XMLFILES := $(addprefix $(obj)/,$(DOCS))
 MANFILES := $(patsubst %.xml, %.7, $(XMLFILES))
 HTMLFILES := $(patsubst %.xml, %.html, $(XMLFILES))
 
-XMLTO_ARGS := -m $(srctree)/$(src)/stylesheet.xsl
+XMLTO_ARGS := -m $(srctree)/$(src)/stylesheet.xsl --skip-validation
 
+quiet_cmd_db2man = MAN     $@
+      cmd_db2man = xmlto man $(XMLTO_ARGS) -o $(obj) $<
 %.7: %.xml
-	xmlto man $(XMLTO_ARGS) -o $(obj) $<
+	@(which xmlto > /dev/null 2>&1) || \
+	 (echo "*** You need to install xmlto ***"; \
+	  exit 1)
+	$(call cmd,db2man)
 
+quiet_cmd_db2html = HTML    $@
+      cmd_db2html = xmlto html-nochunks $(XMLTO_ARGS) -o $(obj) $<
 %.html: %.xml
-	xmlto html-nochunks $(XMLTO_ARGS) -o $(obj) $<
+	@(which xmlto > /dev/null 2>&1) || \
+	 (echo "*** You need to install xmlto ***"; \
+	  exit 1)
+	$(call cmd,db2html)
 
 mandocs: $(MANFILES)
 
-- 
2.3.2


  parent reply	other threads:[~2015-03-16  9:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16  9:17 [PATCH 1/4] samples/kdbus: drop wrong include David Herrmann
2015-03-16  9:17 ` [PATCH 2/4] Documentation/kdbus: fix out-of-tree builds David Herrmann
2015-03-16  9:17 ` David Herrmann [this message]
2015-03-16  9:17 ` [PATCH 4/4] selftests/kdbus: fix gitignore David Herrmann
2015-03-16 19:55 ` [PATCH 1/4] samples/kdbus: drop wrong include Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426497433-22846-3-git-send-email-dh.herrmann@gmail.com \
    --to=dh.herrmann@gmail.com \
    --cc=daniel@zonque.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tixxdz@opendz.org \
    --subject='Re: [PATCH 3/4] Documentation/kdbus: support quiet builds' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).