diff options
author | jlam <jlam@pkgsrc.org> | 2005-04-30 15:06:58 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-04-30 15:06:58 +0000 |
commit | d131d625e5aa1a44611773cd70ab2f9126fcbb5c (patch) | |
tree | dce668b6d47c82286ca2bbb05c9bf8e6250214dd /mail/qmail | |
parent | 60499173bb3b2af767fd8a15b23c67817de0f262 (diff) | |
download | pkgsrc-d131d625e5aa1a44611773cd70ab2f9126fcbb5c.tar.gz |
Use :sh instead of != to assign QUEUE_EXTRALEN to defer evalutation of
command until it is referenced within subst.mk's make targets. This
avoids needing ${EXPR} and ${WC} in the top-level make.
Diffstat (limited to 'mail/qmail')
-rw-r--r-- | mail/qmail/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index 195b196ffd5..851cbab8857 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2005/04/11 21:46:23 tv Exp $ +# $NetBSD: Makefile,v 1.34 2005/04/30 15:06:58 jlam Exp $ # DISTNAME= netqmail-1.05 @@ -81,11 +81,11 @@ PKG_FAIL_REASON+= "QMAIL_QUEUE_DIR must not be under ${QMAILDIR}" .if !empty(QMAIL_QUEUE_EXTRA) QUEUE_EXTRA= "T${QMAIL_QUEUE_EXTRA}\\0" -QUEUE_EXTRALEN!= ${EXPR} `${ECHO} ${QUEUE_EXTRA} | ${WC} -c` - 2 +QUEUE_EXTRALEN_cmd= ${EXPR} `${ECHO} ${QUEUE_EXTRA} | ${WC} -c` - 2 SUBST_CLASSES+= logging SUBST_STAGE.logging= do-configure SUBST_FILES.logging= extra.h -SUBST_SED.logging= -e 's|0|${QUEUE_EXTRALEN}|g' +SUBST_SED.logging= -e 's|0|${QUEUE_EXTRALEN_cmd:sh}|g' SUBST_SED.logging+= -e 's|""|${QUEUE_EXTRA}|g' SUBST_MESSAGE.logging= "Setting QUEUE_EXTRA." .endif |