mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
b7d28aff10
Extend it to other cases of meta mode cookies so they get the proper rm cookie behavior when a .meta file detects it needs to rebuild and fails. Sponsored by: EMC / Isilon Storage Division
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
#
|
|
# Doing a make install builds /usr/share/sendmail/
|
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
CFDIR= cf
|
|
CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print)
|
|
CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print)
|
|
|
|
DDIR= ${DESTDIR}${SHAREDIR}/sendmail
|
|
|
|
# Define SHARED to indicate whether you want symbolic links to the system
|
|
# source (``symlinks''), or a separate copy (``copies'')
|
|
SHARED?= copies
|
|
|
|
all clean cleandir depend lint tags:
|
|
|
|
beforeinstall: ${SHARED}
|
|
META_TARGETS+= copies symlinks
|
|
|
|
copies: ${META_DEPS}
|
|
if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
|
|
.for dir in ${CFDIRS}
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
|
|
.endfor
|
|
.for file in ${CFFILES}
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
|
|
.endfor
|
|
|
|
symlinks: ${META_DEPS}
|
|
rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
|
|
|
|
.include <bsd.prog.mk>
|