pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk SUBST_POSTCMD must be globally defined or else it b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0776ed551f8c
branches:  trunk
changeset: 479839:0776ed551f8c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Aug 23 16:37:09 2004 +0000

description:
SUBST_POSTCMD must be globally defined or else it breaks.

diffstat:

 mk/subst.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 9f570bef8451 -r 0776ed551f8c mk/subst.mk
--- a/mk/subst.mk       Mon Aug 23 16:36:00 2004 +0000
+++ b/mk/subst.mk       Mon Aug 23 16:37:09 2004 +0000
@@ -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 @@
 
 .  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



Home | Main Index | Thread Index | Old Index