summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-23 16:37:09 +0000
committerjlam <jlam@pkgsrc.org>2004-08-23 16:37:09 +0000
commit3a4481535ed3dda5dd85d004bedabceda70ca65e (patch)
tree3c3b37aac390764375d25ccb8287918df0121bc6
parent4a7c06b1a3bb10a3b95e17f995b01c63f5fcdbde (diff)
downloadpkgsrc-3a4481535ed3dda5dd85d004bedabceda70ca65e.tar.gz
SUBST_POSTCMD must be globally defined or else it breaks.
-rw-r--r--mk/subst.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index a934911f69b..fe0ba4f887f 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.15 2004/08/23 16:36:00 jlam Exp $
+# $NetBSD: subst.mk,v 1.16 2004/08/23 16:37:09 jlam Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a paricular
@@ -45,10 +45,10 @@ _SUBST_COOKIE.${_class_}= ${WRKDIR}/.subst_${_class_}_done
. if defined(SUBST_SED.${_class_}) && !empty(SUBST_SED.${_class_})
SUBST_FILTER_CMD.${_class_}?= ${SED} ${SUBST_SED.${_class_}}
-SUBST_POSTCMD.${_class_}?= ${RM} -f $$file${_SUBST_BACKUP_SUFFIX}
. else
SUBST_FILTER_CMD.${_class_}?= # empty
. endif
+SUBST_POSTCMD.${_class_}?= ${RM} -f $$file${_SUBST_BACKUP_SUFFIX}
SUBST_TARGETS+= subst-${_class_}
_SUBST_TARGETS.${_class_}= subst-${_class_}-message