1# $FreeBSD: head/share/sendmail/Makefile 284255 2015-06-11 04:22:17Z sjg $
| 1# $FreeBSD: head/share/sendmail/Makefile 290083 2015-10-27 23:35:02Z bdrewery $
|
2# 3# Doing a make install builds /usr/share/sendmail/ 4 5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 6CFDIR= cf 7CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print) 8CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print) 9
| 2# 3# Doing a make install builds /usr/share/sendmail/ 4 5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 6CFDIR= cf 7CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print) 8CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print) 9
|
10DDIR= ${DESTDIR}/usr/share/sendmail
| 10DDIR= ${DESTDIR}${SHAREDIR}/sendmail
|
11 12# Define SHARED to indicate whether you want symbolic links to the system 13# source (``symlinks''), or a separate copy (``copies'') 14SHARED?= copies 15 16all clean cleandir depend lint tags: 17 18beforeinstall: ${SHARED} 19 20copies:: 21 if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi 22.for dir in ${CFDIRS} 23 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir} 24.endfor 25.for file in ${CFFILES} 26 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file} 27.endfor 28 29symlinks:: 30 rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR} 31 32.include <bsd.prog.mk>
| 11 12# Define SHARED to indicate whether you want symbolic links to the system 13# source (``symlinks''), or a separate copy (``copies'') 14SHARED?= copies 15 16all clean cleandir depend lint tags: 17 18beforeinstall: ${SHARED} 19 20copies:: 21 if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi 22.for dir in ${CFDIRS} 23 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir} 24.endfor 25.for file in ${CFFILES} 26 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file} 27.endfor 28 29symlinks:: 30 rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR} 31 32.include <bsd.prog.mk>
|