diff options
author | jlam <jlam@pkgsrc.org> | 2005-04-30 15:05:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-04-30 15:05:06 +0000 |
commit | 88a657f75e1796ba4f9e537fb83a0ff753f998f5 (patch) | |
tree | c23ff15a2ad2403e8f7d9e247b1cf5e72d808a4c /mk | |
parent | a1c0a94254969c38779748eb9e4cbd155c22415e (diff) | |
download | pkgsrc-88a657f75e1796ba4f9e537fb83a0ff753f998f5.tar.gz |
Avoid checking for !empty(...) so that we that defer variable references.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/subst.mk | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mk/subst.mk b/mk/subst.mk index fe0ba4f887f..ff162528eec 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.16 2004/08/23 16:37:09 jlam Exp $ +# $NetBSD: subst.mk,v 1.17 2005/04/30 15:05:06 jlam Exp $ # # This Makefile fragment implements a general text replacement facility. # Package makefiles define a ``class'', for each of which a paricular @@ -43,11 +43,7 @@ _SUBST_BACKUP_SUFFIX= .subst.sav .for _class_ in ${SUBST_CLASSES} _SUBST_COOKIE.${_class_}= ${WRKDIR}/.subst_${_class_}_done -. if defined(SUBST_SED.${_class_}) && !empty(SUBST_SED.${_class_}) SUBST_FILTER_CMD.${_class_}?= ${SED} ${SUBST_SED.${_class_}} -. else -SUBST_FILTER_CMD.${_class_}?= # empty -. endif SUBST_POSTCMD.${_class_}?= ${RM} -f $$file${_SUBST_BACKUP_SUFFIX} SUBST_TARGETS+= subst-${_class_} @@ -77,7 +73,6 @@ subst-${_class_}: ${_SUBST_TARGETS.${_class_}} ${TOUCH} ${TOUCH_FLAGS} ${_SUBST_COOKIE.${_class_}} ${_SUBST_COOKIE.${_class_}}: -. if !empty(SUBST_FILTER_CMD.${_class_}) ${_PKG_SILENT}${_PKG_DEBUG} \ cd ${WRKSRC}; \ files="${SUBST_FILES.${_class_}}"; \ @@ -101,5 +96,4 @@ ${_SUBST_COOKIE.${_class_}}: fi; \ done ;; \ esac -. endif .endfor |