summaryrefslogtreecommitdiffstats
path: root/etc/mail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2003-02-08 21:55:31 +0000
committergshapiro <gshapiro@FreeBSD.org>2003-02-08 21:55:31 +0000
commitda275a07b3d3cf6cc453c3c03b4e8bff66311e66 (patch)
tree6273876417961cb469f26cf4e65561ec8a9bf8e8 /etc/mail
parent0ceba9a3e6ddfafdca8fae55e8060daa044e9e6f (diff)
downloadFreeBSD-src-da275a07b3d3cf6cc453c3c03b4e8bff66311e66.zip
FreeBSD-src-da275a07b3d3cf6cc453c3c03b4e8bff66311e66.tar.gz
Allow multiple aliases files to be rebuilt
PR: bin/40540 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> MFC after: 3 days
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index e4323b6..9e378f9 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -163,9 +163,11 @@ M4FILES!= find ${SENDMAIL_CF_DIR} -type f -name '*.m4' -print
# Aliases are handled separately since they normally reside in /etc
# and can be rebuild without the help of makemap.
#
-${SENDMAIL_ALIASES}.db: ${SENDMAIL_ALIASES}
- ${SENDMAIL} -bi
+.for _f in ${SENDMAIL_ALIASES}
+${_f}.db: ${_f}
+ ${SENDMAIL} -bi -OAliasFile=${.ALLSRC}
chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
+.endfor
#
# ------------------------------------------------------------------------
@@ -203,7 +205,7 @@ install-submit-cf: ${INSTALL_SUBMIT_CF}
.endif
.endif
-aliases: ${SENDMAIL_ALIASES}.db
+aliases: ${SENDMAIL_ALIASES:%=%.db}
maps: ${SENDMAIL_MAP_OBJ}
OpenPOWER on IntegriCloud