Switch to CVS 1.12.11
[dragonfly.git] / gnu / usr.bin / cvs / cvs / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/gnu/usr.bin/cvs/cvs/Makefile,v 1.32.2.6 2003/01/21 23:06:51 peter Exp $
fffa0a21 2# $DragonFly: src/gnu/usr.bin/cvs/cvs/Makefile,v 1.9 2005/03/13 11:43:07 corecode Exp $
984263bc
MD
3
4.include "${.CURDIR}/../Makefile.inc"
5
6.PATH: ${CVSDIR}/src
7.PATH: ${CVSDIR}/lib
8.PATH: ${CVSDIR}/man
9360f817 9.PATH: ${CVSDIR}/doc
984263bc
MD
10.PATH: ${CVSDIR}
11
12PROG= cvs
9360f817 13MAN= ${.OBJDIR}/cvs.1 cvs.5
984263bc
MD
14
15SRCS= add.c admin.c annotate.c buffer.c \
16 checkin.c checkout.c classify.c client.c \
9360f817 17 commit.c create_adm.c cvsrc.c edit.c entries.c error.c \
faa1eb65
JR
18 exithandle.c expand_path.c fileattr.c filesubr.c find_names.c \
19 hardlink.c hash.c history.c ignore.c import.c lock.c log.c \
fffa0a21
SS
20 log-buffer.c login.c logmsg.c ls.c mkmodules.c \
21 modules.c ms-buffer.c myndbm.c no_diff.c patch.c prepend_args.c \
984263bc 22 rcs.c rcscmds.c \
faa1eb65 23 recurse.c release.c remove.c repos.c root.c rsh-client.c run.c \
fffa0a21
SS
24 scramble.c server.c socket-client.c stack.c status.c subr.c tag.c \
25 update.c vers_ts.c version.c watch.c wrapper.c zlib.c \
008e4c08 26 main.c diff.c ${PATCHES}
9360f817 27
fffa0a21
SS
28PATCHES=main.c.patch diff.c.patch root.c.patch rcs.c.patch \
29 parseinfo.c.patch cvs.h.patch
008e4c08 30CONTRIBDIR= ${CVSDIR}/src
9360f817
MD
31
32${.OBJDIR}/cvs.1: cvs.1.patch
008e4c08 33 patch -o ${.TARGET} -i ${.ALLSRC} ${CVSDIR}/doc/cvs.1
9360f817 34
008e4c08 35CLEANFILES+= ${.OBJDIR}/cvs.1
984263bc
MD
36
37CFLAGS+= -I${.CURDIR} -I../lib -DHAVE_CONFIG_H \
38 -I${CVSDIR}/src -I${CVSDIR}/lib -I${CVSDIR}/diff -I.
39
40DPADD+= ${LIBCVS} ${LIBDIFF} ${LIBGNUREGEX} ${LIBMD} ${LIBCRYPT} ${LIBZ}
41LDADD+= ${LIBCVS} ${LIBDIFF} -lgnuregex -lmd -lcrypt -lz
42
984263bc
MD
43#
44# Regression test support
45#
46CLEANDIRS+=cvs-sanity
47.ifmake regress
48USERID!=id -u
49regress:
50 mkdir -p ${.OBJDIR}/cvs-sanity/tmp ${.OBJDIR}/cvs-sanity/work
51.if ${USERID} == "0"
52 chown -R nobody ${.OBJDIR}/cvs-sanity
53 (TESTDIR=`sh -c 'cd ${.OBJDIR}/cvs-sanity/tmp && /bin/pwd'`;\
54 export TESTDIR;\
55 cd ${.OBJDIR}/cvs-sanity/work;\
56 su -m nobody -c "sh ${CVSDIR}/src/sanity.sh ${.OBJDIR}/cvs")
57.else
58 (TESTDIR=`sh -c 'cd ${.OBJDIR}/cvs-sanity/tmp && /bin/pwd'`;\
59 export TESTDIR;\
60 cd ${.OBJDIR}/cvs-sanity/work;\
61 sh ${CVSDIR}/src/sanity.sh ${.OBJDIR}/cvs)
62.endif
63.endif
64
65.include <bsd.prog.mk>