summaryrefslogtreecommitdiff
path: root/share/mk/bsd.man.mk
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-01-06 21:04:07 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-01-06 21:04:07 +0000
commitd25ec27e2abebc95396b65f8ac3156bd51774b15 (patch)
treedd76929a793a1a3bab0aa5c5148fc1dca5c01371 /share/mk/bsd.man.mk
parent38044b366fe094db6813a41954440b1a14080d61 (diff)
Make mandoc show all warnings when WARNINGS=yes. Discussed with jmc@ and
schwarze@. ok schwarze deraadt
Diffstat (limited to 'share/mk/bsd.man.mk')
-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