From 8816eccfbe6c9a1a046fd6db4ece45966e009307 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 14 Nov 2019 06:41:14 +0000 Subject: doc: check-man: save the result of successful runs We can keep a stamp around if the corresponding manpage hasn't changed to avoid re-running man(1) and awk(1). --- Documentation/include.mk | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Documentation/include.mk') diff --git a/Documentation/include.mk b/Documentation/include.mk index ea0498c1..651fdf30 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -93,14 +93,15 @@ doc_install :: install-man check :: check-man check_man = @echo CHECK80 $<;COLUMNS=80 $(MAN) ./$^ | \ - $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 + $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 \ + && >$@ -%.1.cols : %.1; $(check_man) -%.5.cols : %.5; $(check_man) -%.7.cols : %.7; $(check_man) -%.8.cols : %.8; $(check_man) +.%.1.cols : %.1; $(check_man) +.%.5.cols : %.5; $(check_man) +.%.7.cols : %.7; $(check_man) +.%.8.cols : %.8; $(check_man) -check-man :: $(addsuffix .cols, $(manpages)) +check-man :: $(addprefix .,$(addsuffix .cols, $(manpages))) manuals := manuals += $(m1) -- cgit v1.2.3-24-ge0c7