]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: enable "check-man" target via "check" in gmake
authorEric Wong <e@80x24.org>
Thu, 17 Oct 2019 08:10:27 +0000 (08:10 +0000)
committerEric Wong <e@80x24.org>
Thu, 17 Oct 2019 08:10:27 +0000 (08:10 +0000)
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.

Documentation/include.mk

index 07b9f2a3f414734105906ad0c08856c9891dc55a..1460604d092fa9fd8401318900840b60ad174e50 100644 (file)
@@ -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