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