xref: /freebsd/share/sendmail/Makefile (revision 7d8f797b725e3efc0a4256554654780df83c456c)
131923af7SGregory Neil Shapiro# $FreeBSD$
231923af7SGregory Neil Shapiro#
331923af7SGregory Neil Shapiro# Doing a make install builds /usr/share/sendmail/
431923af7SGregory Neil Shapiro
531923af7SGregory Neil ShapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
631923af7SGregory Neil ShapiroCFDIR=	cf
72227a3e9SRemko LodderCFDIRS!=	(cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print)
82227a3e9SRemko LodderCFFILES!=	(cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print)
931923af7SGregory Neil Shapiro
10*7d8f797bSBryan DreweryDDIR=	${DESTDIR}${SHAREDIR}/sendmail
1131923af7SGregory Neil Shapiro
1231923af7SGregory Neil Shapiro# Define SHARED to indicate whether you want symbolic links to the system
1331923af7SGregory Neil Shapiro# source (``symlinks''), or a separate copy (``copies'')
1431923af7SGregory Neil ShapiroSHARED?=	copies
1531923af7SGregory Neil Shapiro
1631923af7SGregory Neil Shapiroall clean cleandir depend lint tags:
1731923af7SGregory Neil Shapiro
1831923af7SGregory Neil Shapirobeforeinstall: ${SHARED}
1931923af7SGregory Neil Shapiro
2031923af7SGregory Neil Shapirocopies::
21f4c5766bSGregory Neil Shapiro	if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
2231923af7SGregory Neil Shapiro.for dir in ${CFDIRS}
2399e80051SGregory Neil Shapiro	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
2431923af7SGregory Neil Shapiro.endfor
2531923af7SGregory Neil Shapiro.for file in ${CFFILES}
26d2893b16SRuslan Ermilov	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
2731923af7SGregory Neil Shapiro.endfor
2831923af7SGregory Neil Shapiro
2931923af7SGregory Neil Shapirosymlinks::
3031923af7SGregory Neil Shapiro	rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
3131923af7SGregory Neil Shapiro
3231923af7SGregory Neil Shapiro.include <bsd.prog.mk>
33