freebsd-dev/gnu/usr.bin/cvs/cvsbug/Makefile

29 lines
522 B
Makefile
Raw Normal View History

# $Id: Makefile,v 1.3 1995/12/11 04:24:06 peter Exp $
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${CVSDIR}/src
.PATH: ${CVSDIR}/man
MAN8= cvsbug.8
CLEANFILES+= cvsbug ver
.SUFFIXES: .sh
all: cvsbug
.sh:
echo > ver cvs-`sed < ${CVSDIR}/src/version.c \
-e '/version_string/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
-e q`
sed -e "s,xVERSIONx,`cat ver`,g" $> > $@
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
cvsbug ${DESTDIR}${BINDIR}/cvsbug
.include <bsd.prog.mk>