NetBSD/gnu/usr.bin/cvs/cvsbug/Makefile
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00

29 lines
596 B
Makefile

# $NetBSD: Makefile,v 1.7 2003/10/21 10:01:20 lukem Exp $
.include "${.CURDIR}/../Makefile.inc"
DIST= ${IDIST}/src
.PATH: ${DIST} ${IDIST}/man ${IDIST}
SCRIPTS= cvsbug
MAN= cvsbug.8
CLEANFILES+=.fname cvsbug
cvsbug: cvsbug.in
${_MKTARGET_CREATE}
sed -e 's,@PACKAGE_BUGREPORT@,bug-cvs@gnu.org,g' \
-e "s,@VERSION@,`cat .fname`,g" ${.ALLSRC} > ${.TARGET}
chmod a+x ${.TARGET}
cvsbug: .fname
.fname: configure
${_MKTARGET_CREATE}
echo > .fname \
cvs-`sed < ${.ALLSRC} \
-e '/PACKAGE_VERSION/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
-e q`
.include <bsd.prog.mk>