Silence xsltproc when writing manpages

Unless make is invoked with V=1, have xmlto pass the parameter
'man.output.quietly=1' to xsltproc to suppress "Note: Writing foo.N"
output from the manpages stylesheet.

(This doesn't quite do what it says: The output is not silenced if V has
any value, including 0.  You could consider that either a bug or a
feature.)
This commit is contained in:
Jon Turney 2022-05-02 13:55:15 +01:00 committed by Jeff Johnston
parent d51aab2abd
commit 81b7cf09fa
3 changed files with 5 additions and 2 deletions

View File

@ -442,6 +442,9 @@ TEXI2DVI = texi2dvi -E
TEXINFO_TEX = ../texinfo/texinfo.tex
XMLTO_MAN_QUIET_=--stringparam man.output.quietly=1
XMLTO_MAN_QUIET=$(XMLTO_MAN_QUIET_$(V))
if HAVE_DOC
include doc/Makefile.inc
endif

View File

@ -24,7 +24,7 @@ $(LIBC_CHEWOUT_FILES): $(MKDOC)
$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@
%C%_man.stamp: %D%/libc.xml
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libc.xml
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libc.xml
$(AM_V_at)touch $@
man: %C%_man.stamp

View File

@ -24,7 +24,7 @@ $(LIBM_CHEWOUT_FILES): $(MKDOC)
$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@
%C%_man.stamp: %D%/libm.xml
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libm.xml
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libm.xml
$(AM_V_at)touch $@
man: %C%_man.stamp