summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-10 22:23:02 +0000
committerjlam <jlam@pkgsrc.org>2006-03-10 22:23:02 +0000
commit6f31a709ac83695d81a29f44d5e423c4ef126b3a (patch)
tree8fc8045de6b610f4d44a736ce415d5b082f41400 /mk
parenta1570890978ac154f192306af5739a2d216c23cd (diff)
downloadpkgsrc-6f31a709ac83695d81a29f44d5e423c4ef126b3a.tar.gz
Don't define DEINSTALL_FILE or INSTALL_FILE if the corresponding *_SRC
variables are empty.
Diffstat (limited to 'mk')
-rw-r--r--mk/install/bsd.pkginstall.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/install/bsd.pkginstall.mk b/mk/install/bsd.pkginstall.mk
index 17e51e9a1bf..70272ff6ea6 100644
--- a/mk/install/bsd.pkginstall.mk
+++ b/mk/install/bsd.pkginstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.36 2006/03/09 23:31:51 jlam Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.37 2006/03/10 22:23:02 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -806,8 +806,12 @@ INSTALL_SCRIPTS_ENV+= PKG_REFCOUNT_DBDIR=${PKG_REFCOUNT_DBDIR}
# script logic in bsd.pkg.mk
#
.if !empty(_USE_PKGINSTALL:M[yY][eE][sS])
+. if !empty(DEINSTALL_SRC)
DEINSTALL_FILE= ${PKG_DB_TMPDIR}/+DEINSTALL
+. endif
+. if !empty(INSTALL_SRC)
INSTALL_FILE= ${PKG_DB_TMPDIR}/+INSTALL
+. endif
pre-install-script: generate-install-scripts
${_PKG_SILENT}${_PKG_DEBUG}cd ${PKG_DB_TMPDIR} && \