blob: 2d0f439eb77aea53fa636ed05a028ed068a40696 (
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
28
29
30
31
32
33
34
35
36
37
38
|
# $FreeBSD$
MAINTAINER= peter@FreeBSD.org
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${CVSDIR}/src
.PATH: ${CVSDIR}/lib
.PATH: ${CVSDIR}/man
LIB= cvs
INTERNALLIB= YES
CFLAGS+= -I. -I${CVSDIR}/src -I${CVSDIR}/lib
CFLAGS+= -DHAVE_CONFIG_H
YFLAGS=
CLEANFILES+= config.h
VERSION!= sed < ${CVSDIR}/configure \
-e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
CVS_UMASK_DFLT?= 002
CVS_ADMIN_GROUP?= cvsadmin
CVS_TMPDIR_DFLT?= /tmp
SRCS= config.h argmatch.c getdate.y getline.c \
getopt.c getopt1.c savecwd.c \
sighandle.c stripslash.c \
xgetwd.c yesno.c
config.h: config.h.proto
sed -e "s,@VERSION@,${VERSION}-FreeBSD,g" \
-e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
-e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \
-e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \
${.ALLSRC} > ${.TARGET}
.include <bsd.lib.mk>
|