summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2011-06-24 14:17:42 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2011-06-24 14:17:42 +0000
commit057d19d2ce7e11b152b32a5b255d70c1b862e527 (patch)
tree8c4d2b79876f2afbae8c847efb75fe226c9b79bb
parentebccea5450443aa481ea40a5f338960ab1ebb658 (diff)
Replace the .PHONY manlint target by an empty timestamp file, so man pages
are only re-linted after an actual change. Tweaked from schwarze@'s diff; ok schwarze@
-rw-r--r--share/mk/bsd.man.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk
index 3f44192d709..27db2cd6e71 100644
--- a/share/mk/bsd.man.mk
+++ b/share/mk/bsd.man.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.man.mk,v 1.33 2011/06/23 22:46:12 schwarze Exp $
+# $OpenBSD: bsd.man.mk,v 1.34 2011/06/24 14:17:41 naddy 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
@@ -18,9 +18,14 @@ MANSUBDIR:=${MANSUBDIR:S,^,/,}
MANSUBDIR=''
.endif
-manlint: ${MAN}
+CLEANFILES+= .man-linted
+
.if defined(MAN) && !empty(MAN)
+.man-linted: ${MAN}
mandoc -Tlint -Wfatal ${.ALLSRC}
+ @touch ${.TARGET}
+
+all: .man-linted
.endif
.for page in ${MAN}
@@ -46,6 +51,4 @@ maninstall:
.endif
BEFOREMAN?=
-all: ${BEFOREMAN} ${MAN} manlint
-
-.PHONY: manlint
+all: ${BEFOREMAN} ${MAN}