Upgrade our CVS build from 1.12.8 to 1.12.9 to fix a number of pserver
[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.8 2004/08/03 18:11:56 dillon Exp $
3
4 .include "${.CURDIR}/../Makefile.inc"
5
6 .PATH: ${CVSDIR}/src
7 .PATH: ${CVSDIR}/lib
8 .PATH: ${CVSDIR}/man
9
10 LIB=            cvs
11 INTERNALLIB=    YES
12
13 CFLAGS+= -I. -I${CVSDIR}/src -I${CVSDIR}/lib
14 CFLAGS+= -DHAVE_CONFIG_H -DIN_LIBINTL
15 YFLAGS=
16 CLEANFILES+=    config.h
17
18 VERSION!=       sed < ${CVSDIR}/configure \
19                 -e '/^[         ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
20
21 CVS_UMASK_DFLT?=        002
22 CVS_ADMIN_GROUP?=       cvsadmin
23 CVS_TMPDIR_DFLT?=       /tmp
24
25 SRCS=   config.h argmatch.c getdate.y getline.c getndelim2.c getnline.c \
26         getopt.c getopt1.c getpass.c lstat.c md5.c savecwd.c \
27         sighandle.c stat.c stripslash.c \
28         xmalloc.c xgetwd.c xstrdup.c yesno.c \
29         asnprintf.c vasnprintf.c ls.c stack.c \
30         printf-parse.c printf-args.c exitfail.c basename.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>