Update for the new version of CVS.
[dragonfly.git] / gnu / usr.bin / cvs / lib / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cvs/lib/Makefile,v 1.19.2.4 2003/01/21 23:06:52 peter Exp $
2 # $DragonFly: src/gnu/usr.bin/cvs/lib/Makefile,v 1.4 2004/01/19 11:03:01 asmodai Exp $
3
4 MAINTAINER=     peter@FreeBSD.org
5
6 .include "${.CURDIR}/../Makefile.inc"
7
8 .PATH: ${CVSDIR}/src
9 .PATH: ${CVSDIR}/lib
10 .PATH: ${CVSDIR}/man
11
12 LIB=            cvs
13 INTERNALLIB=    YES
14
15 CFLAGS+= -I. -I${CVSDIR}/src -I${CVSDIR}/lib
16 CFLAGS+= -DHAVE_CONFIG_H
17 YFLAGS=
18 CLEANFILES+=    config.h
19
20 VERSION!=       sed < ${CVSDIR}/configure \
21                 -e '/^[         ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
22
23 CVS_UMASK_DFLT?=        002
24 CVS_ADMIN_GROUP?=       cvsadmin
25 CVS_TMPDIR_DFLT?=       /tmp
26
27 SRCS=   config.h argmatch.c getdate.y getline.c \
28         getopt.c getopt1.c getpass.c md5.c savecwd.c \
29         sighandle.c stripslash.c \
30         xgetwd.c yesno.c
31
32 config.h: config.h.proto
33         sed -e "s,@VERSION@,${VERSION}-DragonFly,g" \
34             -e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
35             -e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \
36             -e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \
37             ${.ALLSRC} > ${.TARGET}
38
39 .include <bsd.lib.mk>