freebsd-skq/gnu/usr.bin/cvs/lib/Makefile
obrien 3a66110137 + Make it clear this was taken from the CVS 1.11 branch on 10-March-2008.
+ Depend on $CVSDIR/configure also - so things get properly remade if we tweak.
2008-03-19 15:18:03 +00:00

38 lines
975 B
Makefile

# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${CVSDIR}/src
.PATH: ${CVSDIR}/lib
.PATH: ${CVSDIR}/man
LIB= cvs
INTERNALLIB=
# gnu must be before lib to pick correct regex.h
CFLAGS+= -I. -I${CVSDIR}/src -I${DESTDIR}/usr/include/gnu \
-I${CVSDIR}/lib
CFLAGS+= -DHAVE_CONFIG_H
YFLAGS=
CLEANFILES+= config.h
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 ${CVSDIR}/configure
version=`sed < ${CVSDIR}/configure \
-e '/^[ ]*VERSION=/!d' -e 's/.*=["'\'']\{0,1\}\([^"'\'']*\)["'\'']\{0,1\}/\1/' -e q`; \
sed -e "s,@VERSION@,$${version}-20080310-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:M*config.h.proto} > ${.TARGET}
.include <bsd.lib.mk>