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