Makefile revision 66940
1# $FreeBSD: head/share/sendmail/Makefile 66940 2000-10-10 18:08:19Z gshapiro $
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 -prune \) -o -type d -print)
8CFFILES!=	(cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type f -print)
9
10DDIR=	${DESTDIR}/usr/share/sendmail
11
12NOOBJ=	noobj
13
14# Define SHARED to indicate whether you want symbolic links to the system
15# source (``symlinks''), or a separate copy (``copies'')
16SHARED?=	copies
17
18all clean cleandir depend lint tags:
19
20beforeinstall: ${SHARED}
21
22copies::
23.for dir in ${CFDIRS}
24	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 -d ${SENDMAIL_DIR}/${dir} ${DDIR}/${dir}
25.endfor
26.for file in ${CFFILES}
27	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
28.endfor
29
30symlinks::
31	rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
32
33.include <bsd.prog.mk>
34