Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

DocBook: make index.html generation less verbose by default

When make htmldocs is called on non-verbose mode, it will still be
verbose with index.html generation for no good reason, printing:

rm -rf Documentation/DocBook/index.html; echo '<h1>Linux Kernel HTML Documentation</h1>' >> Documentation/DocBook/index.html && echo '<h2>Kernel Version: 4.4.0-rc1</h2>' >> Documentation/DocBook/index.html && cat Documentation/DocBook/iio.html >> Documentation/DocBook/index.html

Instead, use the standard non-verbose mode, using:

HTML Documentation/DocBook/index.html

if not called with V=1.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
e237b657 21277551

+3 -2
+3 -2
Documentation/DocBook/Makefile
··· 50 50 51 51 HTML := $(sort $(patsubst %.xml, %.html, $(BOOKS))) 52 52 htmldocs: $(HTML) 53 - $(call build_main_index) 53 + $(call cmd,build_main_index) 54 54 $(call install_media_images) 55 55 56 56 MAN := $(patsubst %.xml, %.9, $(BOOKS)) ··· 138 138 139 139 index = index.html 140 140 main_idx = $(obj)/$(index) 141 - build_main_index = rm -rf $(main_idx); \ 141 + quiet_cmd_build_main_index = HTML $(main_idx) 142 + cmd_build_main_index = rm -rf $(main_idx); \ 142 143 echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \ 143 144 echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \ 144 145 cat $(HTML) >> $(main_idx)