176bfe4c3SPeter Wemm# @(#)Makefile 8.19 (Berkeley) 1/14/97 29b7a44a6SPeter Wemm# $FreeBSD$ 376bfe4c3SPeter Wemm 476bfe4c3SPeter WemmM4= m4 576bfe4c3SPeter WemmCFDIR= ${.CURDIR}/../../contrib/sendmail/cf 676bfe4c3SPeter WemmCHMOD= chmod 776bfe4c3SPeter WemmROMODE= 444 876bfe4c3SPeter WemmRM= rm -f 976bfe4c3SPeter Wemm 1076bfe4c3SPeter Wemm.SUFFIXES: .mc .cf 1176bfe4c3SPeter Wemm 1276bfe4c3SPeter Wemm.mc.cf: 1376bfe4c3SPeter Wemm $(RM) ${.TARGET} 1476bfe4c3SPeter Wemm (cd ${.CURDIR} && \ 1576bfe4c3SPeter Wemm $(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET} 1676bfe4c3SPeter Wemm $(CHMOD) $(ROMODE) ${.TARGET} 1776bfe4c3SPeter Wemm 1876bfe4c3SPeter WemmALL= freebsd.cf 1976bfe4c3SPeter Wemm 2076bfe4c3SPeter Wemm# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this 218bdd91e3SDavid E. O'Brien# causes 'make install' to always copy it over /etc/mail/sendmail.cf!!! 2276bfe4c3SPeter Wemm# Caveat emptor! Be sure you want this before you enable it. 2376bfe4c3SPeter Wemm.if defined(SENDMAIL_CF) 2476bfe4c3SPeter WemmALL+= ${SENDMAIL_CF} 2576bfe4c3SPeter Wemm.endif 2676bfe4c3SPeter Wemm 2776bfe4c3SPeter WemmCLEANFILES+=$(ALL) 2876bfe4c3SPeter Wemm 2976bfe4c3SPeter Wemmall: $(ALL) 3076bfe4c3SPeter Wemm 3176bfe4c3SPeter Wemmdepend: 3276bfe4c3SPeter Wemm 3376bfe4c3SPeter Wemminstall: 3476bfe4c3SPeter Wemm.if defined(SENDMAIL_CF) 3576bfe4c3SPeter Wemm ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \ 368bdd91e3SDavid E. O'Brien ${DESTDIR}/etc/mail/sendmail.cf 3776bfe4c3SPeter Wemm.endif 3876bfe4c3SPeter Wemm 3976bfe4c3SPeter Wemm# Helper for src/etc/Makefile 4076bfe4c3SPeter Wemmetc-sendmail.cf: freebsd.cf 4176bfe4c3SPeter Wemm ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \ 428bdd91e3SDavid E. O'Brien ${DESTDIR}/etc/mail/sendmail.cf 4376bfe4c3SPeter Wemm 4476bfe4c3SPeter Wemm# this is overkill, but.... 4576bfe4c3SPeter WemmM4FILES!= find ${CFDIR} -type f -name '*.m4' -print 4676bfe4c3SPeter Wemm 4776bfe4c3SPeter Wemm$(ALL): $(M4FILES) 4876bfe4c3SPeter Wemm 4976bfe4c3SPeter Wemm.include <bsd.prog.mk> 50