diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2002-02-24 02:38:23 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2002-02-24 02:38:23 +0000 |
commit | 526c28fb445d90a04097316643a654ad37cbc00a (patch) | |
tree | 4737d9c4788da78a3efc0432faa492df6deb1cc1 /etc | |
parent | 01635cd066f3bfcd2be4a2db737e728ab71c4ce6 (diff) | |
download | FreeBSD-src-526c28fb445d90a04097316643a654ad37cbc00a.zip FreeBSD-src-526c28fb445d90a04097316643a654ad37cbc00a.tar.gz |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/sendmail/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/etc/sendmail/Makefile b/etc/sendmail/Makefile index 2ff7659..dd87e16 100644 --- a/etc/sendmail/Makefile +++ b/etc/sendmail/Makefile @@ -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: |