1 # $FreeBSD: src/share/sendmail/Makefile,v 1.1.2.7 2003/05/10 17:24:25 gshapiro Exp $
3 # Doing a make install builds /usr/share/sendmail/
5 MAINTAINER= gshapiro@FreeBSD.org
7 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
9 CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type d -print)
10 CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type f -print)
12 DDIR= ${DESTDIR}/usr/share/sendmail
16 # Define SHARED to indicate whether you want symbolic links to the system
17 # source (``symlinks''), or a separate copy (``copies'')
20 all clean cleandir depend lint tags:
22 beforeinstall: ${SHARED}
25 if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
27 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
29 .for file in ${CFFILES}
30 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
34 rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
36 .include <bsd.prog.mk>