Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / gpl2 / xcvs / bin / cvsbug / Makefile
blob3f1935981d032509c4df328ccb0b25079711873a
1 # $NetBSD: Makefile,v 1.1 2009/04/08 16:27:51 christos Exp $
3 .include "${.CURDIR}/../../Makefile.inc"
5 DIST= ${IDIST}/src
6 .PATH: ${DIST} ${IDIST}/man ${IDIST}
8 SCRIPTS= cvsbug
9 MAN= cvsbug.8
10 CLEANFILES+=.fname cvsbug
12 cvsbug: cvsbug.in
13 ${_MKTARGET_CREATE}
14 ${TOOL_SED} -e 's,@PACKAGE_BUGREPORT@,bug-cvs@gnu.org,g' \
15 -e "s,@VERSION@,`cat .fname`,g" \
16 -e "s,@MKTEMP_SH_FUNCTION@,," \
17 -e "s,@MKTEMP@,/usr/bin/mktemp," \
18 -e "s,@SENDMAIL@,/usr/sbin/sendmail," ${.ALLSRC} > ${.TARGET}
19 chmod a+x ${.TARGET}
21 cvsbug: .fname
23 .fname: configure
24 ${_MKTARGET_CREATE}
25 echo > .fname \
26 cvs-`${TOOL_SED} < ${.ALLSRC} \
27 -e '/PACKAGE_VERSION/!d' \
28 -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
29 -e q`
31 .include <bsd.prog.mk>