summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-01-06 21:04:06 +0000
committernicm <nicm@openbsd.org>2012-01-06 21:04:06 +0000
commita55e4627da779e6f77e591fbcde0184fa3cbcc0a (patch)
treecb4de95610354b8b4ee282963b24f271242ed5bf
parentzap double copy of this file, as noticed by brad@ (diff)
downloadwireguard-openbsd-a55e4627da779e6f77e591fbcde0184fa3cbcc0a.tar.xz
wireguard-openbsd-a55e4627da779e6f77e591fbcde0184fa3cbcc0a.zip
Make mandoc show all warnings when WARNINGS=yes. Discussed with jmc@ and
schwarze@. ok schwarze deraadt
-rw-r--r--share/mk/bsd.man.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk
index 32676a746cf..93227b66e43 100644
--- a/share/mk/bsd.man.mk
+++ b/share/mk/bsd.man.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.man.mk,v 1.38 2011/07/06 20:40:32 schwarze Exp $
+# $OpenBSD: bsd.man.mk,v 1.39 2012/01/06 21:04:06 nicm Exp $
# $NetBSD: bsd.man.mk,v 1.23 1996/02/10 07:49:33 jtc Exp $
# @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90
@@ -41,7 +41,11 @@ _MAN_SUFFIXES=1 2 3 3p 4 5 6 7 8 9
.for s in ${_MAN_SUFFIXES}
.SUFFIXES: .${s} .${s}.manlint
.${s}.${s}.manlint:
+.if ${WARNINGS:L} == "yes"
+ mandoc -Tlint ${.IMPSRC} || [ $$? -lt 4 ]
+.else
mandoc -Tlint -Wfatal ${.IMPSRC}
+.endif
@touch ${.TARGET}
.endfor