mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
28 lines
569 B
Makefile
28 lines
569 B
Makefile
# $Id: Makefile,v 1.4 1995/12/11 01:58:53 peter Exp $
|
|
|
|
MAN8= cvsinit.8
|
|
|
|
EXAMPDIR= /usr/share/examples/cvs
|
|
CLEANFILES+= cvsinit ver
|
|
|
|
.SUFFIXES: .sh
|
|
|
|
all: cvsinit
|
|
|
|
.sh:
|
|
echo > ver \
|
|
cvs-`sed < ${.CURDIR}/../lib/version.c \
|
|
-e '/version_string/!d' \
|
|
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
|
|
-e q`
|
|
sed -e 's,xLIBDIRx,$(EXAMPDIR),g' \
|
|
-e "s,xVERSIONx,`cat ver`,g" ${.CURDIR}/$@.sh > $@
|
|
|
|
beforeinstall:
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
cvsinit ${DESTDIR}${BINDIR}/cvsinit
|
|
|
|
.include "../../Makefile.inc"
|
|
.include <bsd.prog.mk>
|
|
|