|
Lines 15-27
Link Here
|
| 15 |
$(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET} |
15 |
$(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET} |
| 16 |
$(CHMOD) $(ROMODE) ${.TARGET} |
16 |
$(CHMOD) $(ROMODE) ${.TARGET} |
| 17 |
|
17 |
|
| 18 |
ALL= freebsd.cf |
|
|
| 19 |
|
| 20 |
# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this |
| 21 |
# causes 'make install' to always copy it over /etc/mail/sendmail.cf!!! |
| 22 |
# Caveat emptor! Be sure you want this before you enable it. |
| 23 |
.if defined(SENDMAIL_CF) |
18 |
.if defined(SENDMAIL_CF) |
| 24 |
ALL+= ${SENDMAIL_CF} |
19 |
ALL= ${SENDMAIL_CF} |
|
|
20 |
.else |
| 21 |
ALL= freebsd.cf |
| 25 |
.endif |
22 |
.endif |
| 26 |
|
23 |
|
| 27 |
CLEANFILES+=$(ALL) |
24 |
CLEANFILES+=$(ALL) |
|
Lines 30-44
Link Here
|
| 30 |
|
27 |
|
| 31 |
depend: |
28 |
depend: |
| 32 |
|
29 |
|
| 33 |
install: |
|
|
| 34 |
.if defined(SENDMAIL_CF) |
30 |
.if defined(SENDMAIL_CF) |
| 35 |
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \ |
31 |
install: etc-sendmail.cf |
| 36 |
${DESTDIR}/etc/mail/sendmail.cf |
32 |
.else |
|
|
33 |
install: |
| 37 |
.endif |
34 |
.endif |
| 38 |
|
35 |
|
| 39 |
# Helper for src/etc/Makefile |
36 |
# Helper for src/etc/Makefile |
| 40 |
etc-sendmail.cf: freebsd.cf |
37 |
etc-sendmail.cf: $(ALL) |
| 41 |
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \ |
38 |
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 $(ALL) \ |
| 42 |
${DESTDIR}/etc/mail/sendmail.cf |
39 |
${DESTDIR}/etc/mail/sendmail.cf |
| 43 |
|
40 |
|
| 44 |
# this is overkill, but.... |
41 |
# this is overkill, but.... |