Module Name:    src
Committed By:   joerg
Date:           Fri Oct 23 23:12:10 UTC 2009

Modified Files:
        src/share/mk: bsd.man.mk bsd.own.mk

Log Message:
Do not run mandoc for lintmanpages if MANPAGES is empty.
Add it to the list of targets to recurse for.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/share/mk/bsd.man.mk
cvs rdiff -u -r1.590 -r1.591 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.man.mk
diff -u src/share/mk/bsd.man.mk:1.101 src/share/mk/bsd.man.mk:1.102
--- src/share/mk/bsd.man.mk:1.101	Fri Oct 23 22:14:37 2009
+++ src/share/mk/bsd.man.mk	Fri Oct 23 23:12:10 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.man.mk,v 1.101 2009/10/23 22:14:37 joerg Exp $
+#	$NetBSD: bsd.man.mk,v 1.102 2009/10/23 23:12:10 joerg Exp $
 #	@(#)bsd.man.mk	8.1 (Berkeley) 6/8/93
 
 .include <bsd.init.mk>
@@ -274,7 +274,7 @@
 .endif
 # (XXX ${CATPAGES:S...} cleans up old .catN files where .catN.gz now used)
 
-.if ${MKMANDOC} == "yes"
+.if ${MKMANDOC} == "yes" && !empty(MANPAGES)
 lintmanpages: ${MANPAGES}
 	${TOOL_MANDOC_LINT} -Tlint -fstrict ${.ALLSRC}
 .endif

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.590 src/share/mk/bsd.own.mk:1.591
--- src/share/mk/bsd.own.mk:1.590	Fri Oct 23 22:14:37 2009
+++ src/share/mk/bsd.own.mk	Fri Oct 23 23:12:10 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.590 2009/10/23 22:14:37 joerg Exp $
+#	$NetBSD: bsd.own.mk,v 1.591 2009/10/23 23:12:10 joerg Exp $
 
 .if !defined(_BSD_OWN_MK_)
 _BSD_OWN_MK_=1
@@ -595,6 +595,9 @@
 
 TARGETS+=	all clean cleandir depend dependall includes \
 		install lint obj regress tags html
+.if ${MKMANDOC} == "yes"
+TARGETS+=	lintmanpages
+.endif
 PHONY_NOTMAIN =	all clean cleandir depend dependall distclean includes \
 		install lint obj regress tags beforedepend afterdepend \
 		beforeinstall afterinstall realinstall realdepend realall \

Reply via email to