summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/cvsinit/Makefile
blob: 7392114ce52658c855640ef88ce11286c45629d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#	$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>

OpenPOWER on IntegriCloud