3 # Doing a make install builds /usr/share/sendmail/
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
7 CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print)
8 CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print)
10 DDIR= ${DESTDIR}/usr/share/sendmail
14 # Define SHARED to indicate whether you want symbolic links to the system
15 # source (``symlinks''), or a separate copy (``copies'')
18 all clean cleandir depend lint tags:
20 beforeinstall: ${SHARED}
23 if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
25 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
27 .for file in ${CFFILES}
28 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
32 rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
34 .include <bsd.prog.mk>