c26f14e2b9
Fixed some style bugs ($@ is not recommended ...).
30 lines
556 B
Makefile
30 lines
556 B
Makefile
# $Id: Makefile,v 1.7 1997/02/22 15:45:15 peter Exp $
|
|
|
|
.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>
|