Add precautions so that threads won't race to exit1() and get stuck there.
[dragonfly.git] / share / sendmail / Makefile
blobbfad3b454009abb53323de806a239183f8038c92
1 # $FreeBSD: src/share/sendmail/Makefile,v 1.1.2.7 2003/05/10 17:24:25 gshapiro Exp $
2 # $DragonFly: src/share/sendmail/Makefile,v 1.8 2006/08/18 03:06:59 gshapiro Exp $
4 # Doing a make install builds /usr/share/sendmail/
6 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.13.8
7 CFDIR= cf
8 CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type d -print)
9 CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type f -print)
11 DDIR= ${DESTDIR}/usr/share/sendmail
13 NOOBJ= noobj
15 # Define SHARED to indicate whether you want symbolic links to the system
16 # source (``symlinks''), or a separate copy (``copies'')
17 SHARED?= copies
19 all clean cleandir depend lint tags:
21 beforeinstall: ${SHARED}
23 copies::
24 if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
25 .for dir in ${CFDIRS}
26 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
27 .endfor
28 .for file in ${CFFILES}
29 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
30 .endfor
32 symlinks::
33 rm -rf ${DDIR}/${CFDIR}; ${LN} -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
35 .include <bsd.prog.mk>