summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-08-07 10:54:40 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-08-07 10:54:40 +0000
commit4ead83b5add2c66335a363246c1766622c4cc314 (patch)
tree12fb45face745cf7a0353f5df14932d01318a685 /share
parent8c0a1e3fe79f333adb81281a2334be392efe7594 (diff)
add possible call to a MANLINT script (defined to be # by default)
`sounds reasonable' millert@
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.man.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk
index 3191985bb12..18c95b9bb3d 100644
--- a/share/mk/bsd.man.mk
+++ b/share/mk/bsd.man.mk
@@ -1,10 +1,11 @@
-# $OpenBSD: bsd.man.mk,v 1.25 2003/08/07 10:52:48 espie Exp $
+# $OpenBSD: bsd.man.mk,v 1.26 2003/08/07 10:54:39 espie 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
MANTARGET?= cat
NROFF?= nroff -Tascii
TBL?= tbl
+MANLINT?= \#
.if !target(.MAIN)
. if exists(${.CURDIR}/../Makefile.inc)
@@ -20,11 +21,13 @@ TBL?= tbl
.9.cat9 .8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3p.cat3p .3.cat3 .2.cat2 .1.cat1:
@echo "${NROFF} -mandoc ${.IMPSRC} > ${.TARGET}"
+ @${MANLINT} ${.IMPSRC}
@${NROFF} -mandoc ${.IMPSRC} > ${.TARGET} || (rm -f ${.TARGET}; false)
.9tbl.cat9 .8tbl.cat8 .7tbl.cat7 .6tbl.cat6 .5tbl.cat5 .4tbl.cat4 .3tbl.cat3 \
.2tbl.cat2 .1tbl.cat1:
@echo "${TBL} ${.IMPSRC} | ${NROFF} -mandoc > ${.TARGET}"
+ @${MANLINT} -tbl ${.IMPSRC}
@${TBL} ${.IMPSRC} | ${NROFF} -mandoc > ${.TARGET} || \
(rm -f ${.TARGET}; false)