]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/sendmail/Makefile
Optionally bind ktls threads to NUMA domains
[FreeBSD/FreeBSD.git] / share / sendmail / Makefile
1 # $FreeBSD$
2 #
3 # Doing a make install builds /usr/share/sendmail/
4
5 PACKAGE=        sendmail
6 FILESGROUPS+=   SM
7 SENDMAIL_DIR=   ${SRCTOP}/contrib/sendmail
8 CFDIR=  cf
9 CFPACKAGE=      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)
12 SMFILES=        ${CFFILES}
13 SMFILESDIR=     ${DDIR}
14
15 DDIR=   ${DESTDIR}${SHAREDIR}/sendmail
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 META_TARGETS+=  copies symlinks
25
26 copies:
27         if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
28 .for dir in ${CFDIRS}
29         ${INSTALL} -T package=${PACKAGE:Usendmail} ${TAGS_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
30 .endfor
31 .for file in ${CFFILES}
32         ${INSTALL} -T package=${PACKAGE:Usendmail} ${TAGS_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
33 .endfor
34
35 symlinks:
36         rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
37
38 .include <bsd.prog.mk>