summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjoerg <joerg>2006-11-03 08:04:06 +0000
committerjoerg <joerg>2006-11-03 08:04:06 +0000
commit73814dd610295ddb36b34ec8321e31d7afe3801d (patch)
tree8e757b1aca37d07837a34372adbe9d6248e0bcf7 /mk/install
parenteb35f5fde15a749076db18ebd81ff0cb1f5b9e38 (diff)
downloadpkgsrc-73814dd610295ddb36b34ec8321e31d7afe3801d.tar.gz
Don't reset the "installed" state when using DESTDIR operations on
deinstall. The semantic of deinstall should stay as "remove the installed version" and the old behaviour force a repackaging.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/deinstall.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/install/deinstall.mk b/mk/install/deinstall.mk
index c6c4299751e..40e67142409 100644
--- a/mk/install/deinstall.mk
+++ b/mk/install/deinstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: deinstall.mk,v 1.6 2006/08/09 15:31:01 jlam Exp $
+# $NetBSD: deinstall.mk,v 1.7 2006/11/03 08:04:06 joerg Exp $
# DEINSTALLDEPENDS controls whether dependencies and dependents are also
# removed when a package is de-installed. The valid values are:
@@ -24,7 +24,9 @@ deinstall: su-target
_SU_DEINSTALL_TARGETS= acquire-deinstall-lock
_SU_DEINSTALL_TARGETS+= deinstall-pkg
_SU_DEINSTALL_TARGETS+= release-deinstall-lock
+.if ${_USE_DESTDIR} == "no"
_SU_DEINSTALL_TARGETS+= install-clean
+.endif
su-deinstall: ${_SU_DEINSTALL_TARGETS}
.PHONY: acquire-deinstall-lock release-deinstall-lock