From: Eric Wong Date: Thu, 17 Oct 2019 08:10:27 +0000 (+0000) Subject: doc: enable "check-man" target via "check" in gmake X-Git-Tag: v1.2.0~33 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=eb424226f3bc1d4a05d1b3900634fadb2ee2c140 doc: enable "check-man" target via "check" in gmake man(1) on FreeBSD supports pathnames as operands just fine, so there's hope other BSDs follow suit and we can enable this check target everywhere. --- diff --git a/Documentation/include.mk b/Documentation/include.mk index 07b9f2a3..1460604d 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -13,7 +13,6 @@ MAN = man # this is "xml" on FreeBSD and maybe some other distros: XMLSTARLET = xmlstarlet -AWK = awk # same as pod2text COLUMNS = 76 @@ -89,9 +88,7 @@ doc_install :: install-man %.1 %.5 %.7 %.8 : Documentation/%.pod $(podman) -s $(subst .,,$(suffix $@)) $< $@+ && mv $@+ $@ -# n.b. not sure if our usage of man(1) is portable or not, so not -# enabled by default "check" target: -# check :: check-man +check :: check-man check_man = @echo CHECK80 $<;COLUMNS=80 $(MAN) ./$^ | \ $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2