mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
32 lines
545 B
Makefile
32 lines
545 B
Makefile
# $FreeBSD$
|
|
|
|
MAINTAINER= peter@FreeBSD.org
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
.PATH: ${CVSDIR}/src
|
|
.PATH: ${CVSDIR}/man
|
|
|
|
MAN8= cvsbug.8
|
|
|
|
CLEANFILES+= cvsbug ver
|
|
|
|
.SUFFIXES: .sh
|
|
|
|
all: cvsbug
|
|
|
|
ver: version.c
|
|
echo > ${.TARGET} cvs-`sed < ${.ALLSRC} \
|
|
-e '/version_string/!d' \
|
|
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
|
|
-e q`
|
|
|
|
.sh: ver
|
|
sed -e "s,xVERSIONx,`cat ver`,g" ${.IMPSRC} > ${.TARGET}
|
|
|
|
beforeinstall:
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
cvsbug ${DESTDIR}${BINDIR}/cvsbug
|
|
|
|
.include <bsd.prog.mk>
|