1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
29 lines
485 B
Makefile
29 lines
485 B
Makefile
# $FreeBSD$
|
|
|
|
.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} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
cvsbug ${DESTDIR}${BINDIR}/cvsbug
|
|
|
|
.include <bsd.prog.mk>
|