Module Name: src Committed By: dholland Date: Mon Oct 19 17:08:11 UTC 2015
Modified Files: src/share/mk: bsd.man.mk Log Message: because I'm feeling tetchy, implement "make describe" for everything that has man pages. To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/share/mk/bsd.man.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.117 src/share/mk/bsd.man.mk:1.118 --- src/share/mk/bsd.man.mk:1.117 Fri Dec 19 22:25:39 2014 +++ src/share/mk/bsd.man.mk Mon Oct 19 17:08:11 2015 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.man.mk,v 1.117 2014/12/19 22:25:39 christos Exp $ +# $NetBSD: bsd.man.mk,v 1.118 2015/10/19 17:08:11 dholland Exp $ # @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93 .include <bsd.init.mk> @@ -293,6 +293,14 @@ lintmanpages: ${MANPAGES} ${TOOL_MANDOC_LINT} -Tlint -fstrict -Wall,stop ${.ALLSRC} .endif +##### describe +describe: +.for _M in ${MANPAGES} + @echo $$(basename ${_M}) - \ + $$(${TOOL_SED} < ${${_M}:P} -n -e '/^\.Nd /{;s/^....//;p;}') +.endfor + + ##### Pull in related .mk logic .include <bsd.obj.mk> .include <bsd.files.mk>