Skip to content

Commit

Permalink
Allow multiple aliases files to be rebuilt
Browse files Browse the repository at this point in the history
PR:		bin/40540
Submitted by:	Cyrille Lefevre <[email protected]>
MFC after:	3 days
  • Loading branch information
gshapiro committed Feb 8, 2003
1 parent 0ceba9a commit da275a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions etc/mail/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
# ------------------------------------------------------------------------
Expand Down Expand Up @@ -203,7 +205,7 @@ install-submit-cf: ${INSTALL_SUBMIT_CF}
.endif
.endif

aliases: ${SENDMAIL_ALIASES}.db
aliases: ${SENDMAIL_ALIASES:%=%.db}

maps: ${SENDMAIL_MAP_OBJ}

Expand Down

0 comments on commit da275a0

Please sign in to comment.