1998-08-04 15:53:18 +00:00
|
|
|
# @(#)Makefile 8.19 (Berkeley) 1/14/97
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-08-04 15:53:18 +00:00
|
|
|
|
|
|
|
M4= m4
|
|
|
|
CFDIR= ${.CURDIR}/../../contrib/sendmail/cf
|
|
|
|
CHMOD= chmod
|
|
|
|
ROMODE= 444
|
|
|
|
RM= rm -f
|
|
|
|
|
|
|
|
.SUFFIXES: .mc .cf
|
|
|
|
|
|
|
|
.mc.cf:
|
|
|
|
$(RM) ${.TARGET}
|
|
|
|
(cd ${.CURDIR} && \
|
|
|
|
$(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
|
|
|
|
$(CHMOD) $(ROMODE) ${.TARGET}
|
|
|
|
|
|
|
|
ALL= freebsd.cf
|
|
|
|
|
|
|
|
# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this
|
1999-12-19 19:55:19 +00:00
|
|
|
# causes 'make install' to always copy it over /etc/mail/sendmail.cf!!!
|
1998-08-04 15:53:18 +00:00
|
|
|
# Caveat emptor! Be sure you want this before you enable it.
|
|
|
|
.if defined(SENDMAIL_CF)
|
|
|
|
ALL+= ${SENDMAIL_CF}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CLEANFILES+=$(ALL)
|
|
|
|
|
|
|
|
all: $(ALL)
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
install:
|
|
|
|
.if defined(SENDMAIL_CF)
|
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \
|
1999-12-19 19:55:19 +00:00
|
|
|
${DESTDIR}/etc/mail/sendmail.cf
|
1998-08-04 15:53:18 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Helper for src/etc/Makefile
|
2001-02-22 03:55:08 +00:00
|
|
|
distribution: freebsd.cf
|
1998-08-04 15:53:18 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
|
1999-12-19 19:55:19 +00:00
|
|
|
${DESTDIR}/etc/mail/sendmail.cf
|
2001-02-22 03:55:08 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
|
|
|
|
${DESTDIR}/var/log/sendmail.st
|
1998-08-04 15:53:18 +00:00
|
|
|
|
|
|
|
# this is overkill, but....
|
|
|
|
M4FILES!= find ${CFDIR} -type f -name '*.m4' -print
|
|
|
|
|
|
|
|
$(ALL): $(M4FILES)
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|