Makefile revision 114775
166940Sgshapiro# $FreeBSD: head/share/sendmail/Makefile 114775 2003-05-06 03:38:24Z gshapiro $
266940Sgshapiro#
366940Sgshapiro# Doing a make install builds /usr/share/sendmail/
466940Sgshapiro
567660SgshapiroMAINTAINER=	gshapiro@FreeBSD.org
667660Sgshapiro
766940SgshapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
866940SgshapiroCFDIR=	cf
966940SgshapiroCFDIRS!=	(cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type d -print)
1066940SgshapiroCFFILES!=	(cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type f -print)
1166940Sgshapiro
1266940SgshapiroDDIR=	${DESTDIR}/usr/share/sendmail
1366940Sgshapiro
1466940SgshapiroNOOBJ=	noobj
1566940Sgshapiro
1666940Sgshapiro# Define SHARED to indicate whether you want symbolic links to the system
1766940Sgshapiro# source (``symlinks''), or a separate copy (``copies'')
1866940SgshapiroSHARED?=	copies
1966940Sgshapiro
2066940Sgshapiroall clean cleandir depend lint tags:
2166940Sgshapiro
2266940Sgshapirobeforeinstall: ${SHARED}
2366940Sgshapiro
2466940Sgshapirocopies::
25114775Sgshapiro	if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
2666940Sgshapiro.for dir in ${CFDIRS}
2777406Sgshapiro	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
2866940Sgshapiro.endfor
2966940Sgshapiro.for file in ${CFFILES}
30100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
3166940Sgshapiro.endfor
3266940Sgshapiro
3366940Sgshapirosymlinks::
3466940Sgshapiro	rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
3566940Sgshapiro
3666940Sgshapiro.include <bsd.prog.mk>
37