Make sure we don't remove /etc/mail/sendmail.cf on make clean since this
will break a running system during a buildworld. Noticed by: Alexandr Listopad <laa@laa.zp.ua> MFC after: 1 week
This commit is contained in:
parent
a0eed7bc1c
commit
d7bbec76f2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91187
@ -22,7 +22,8 @@ M4FILES!= find ${CFDIR} -type f -name '*.m4' -print
|
||||
${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
|
||||
${CHMOD} ${ROMODE} ${.TARGET}
|
||||
|
||||
ALL= freebsd.cf
|
||||
ALL= freebsd.cf
|
||||
CLEANFILES+= freebsd.cf
|
||||
|
||||
# Local SENDMAIL_MC or SENDMAIL_CF may be set in /etc/make.conf.
|
||||
# Warning! If set, this causes 'make install' to always copy it
|
||||
@ -40,14 +41,21 @@ DEST_CF= ${DESTDIR}/etc/mail/sendmail.cf
|
||||
|
||||
ALL+= ${INSTALL_CF}
|
||||
|
||||
# Make sure we don't remove /etc/mail/sendmail.cf on make clean
|
||||
# since this will break a running system during a buildworld.
|
||||
.if defined(INSTALL_CF)
|
||||
.if ${INSTALL_CF} != ${DEST_CF}
|
||||
CLEANFILES+= ${INSTALL_CF}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Additional .cf files to build
|
||||
.if defined(SENDMAIL_ADDITIONAL_MC)
|
||||
SENDMAIL_ADDITIONAL_CF= ${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
|
||||
ALL+= ${SENDMAIL_ADDITIONAL_CF}
|
||||
CLEANFILES+= ${SENDMAIL_ADDITIONAL_CF}
|
||||
.endif
|
||||
|
||||
CLEANFILES+= ${ALL}
|
||||
|
||||
all: ${ALL}
|
||||
|
||||
depend:
|
||||
|
Loading…
Reference in New Issue
Block a user