freebsd-dev/gnu/usr.bin/cvs/lib/Makefile
Peter Wemm afa79409ee Finish update for cvs-1.11.5. Some build-time tunables were moved from
options.h to config.h.in and set via ./configure when built normally.
Export some of the build knobs to the Makefile here, overridable
from /etc/make.conf.  Also get the version strings right.
config.h was repocopied to config.h.proto, and we do a limited sed on it
at build time now.
2003-01-21 23:00:36 +00:00

39 lines
843 B
Makefile

# $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>