freebsd-dev/gnu/usr.bin/cvs/contrib/Makefile
2001-08-10 11:03:29 +00:00

41 lines
811 B
Makefile

# $FreeBSD$
MAINTAINER= peter@FreeBSD.org
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${CVSDIR}/contrib
.PATH: ${CVSDIR}/man
SCRIPTS= clmerge cln_hist commit_prep cvs2vendor cvs_acls cvscheck \
log log_accum mfpipe rcs-to-cvs rcs2log rcslock sccs2rcs \
easy-import
FILES= README cvscheck.man cvshelp.man descend.man intro.doc
EXAMPDIR= /usr/share/examples/cvs
SCRIPTSDIR= ${EXAMPDIR}/contrib
PERLPATH= /usr/bin/perl
CLEANFILES+= $(SCRIPTS)
.SUFFIXES: .sh .pl .in
.sh:
cp $< $@
.pl:
sed -e 's,xPERL_PATHx,$(PERLPATH),' $< > $@
.in:
sed -e 's,@CSH@,/bin/csh,' -e 's,@PERL@,$(PERLPATH),' $< > $@
beforeinstall:
.for file in ${FILES}
cd ${.CURDIR} ; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
${CVSDIR}/contrib/${file} ${DESTDIR}${EXAMPDIR}/contrib
.endfor
.include <bsd.prog.mk>