Skip to content

Commit d366842

Browse files
robnbehlendorf
authored andcommitted
man: add silent rules for mancheck
Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Paul Dagnelie <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #17747
1 parent 45ac604 commit d366842

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

man/Makefile.am

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,21 @@ dist_noinst_DATA += $(dist_noinst_man_MANS) $(dist_man_MANS)
124124

125125
SUBSTFILES += $(nodist_man_MANS)
126126

127-
CHECKS += mancheck
128-
mancheck:
129-
$(top_srcdir)/scripts/mancheck.sh $(srcdir)/%D%
127+
MANFILES = $(dist_noinst_man_MANS) $(dist_man_MANS) $(nodist_man_MANS)
128+
129+
PHONY += mancheck
130+
131+
mancheck_verbose = $(mancheck_verbose_@AM_V@)
132+
mancheck_verbose_ = $(mancheck_verbose_@AM_DEFAULT_V@)
133+
mancheck_verbose_0 = @echo MANCHECK $(_MTGT);
130134

135+
_MTGT = $(subst ^,/,$(subst mancheck-,,$@))
136+
mancheck-%:
137+
$(mancheck_verbose)scripts/mancheck.sh $(_MTGT)
138+
139+
mancheck: $(foreach manfile, $(MANFILES), $(addprefix mancheck-,$(subst /,^,$(manfile))))
140+
141+
CHECKS += mancheck
131142

132143
if BUILD_LINUX
133144
# The manual pager in most Linux distros defaults to "BSD" when .Os is blank,

0 commit comments

Comments
 (0)