summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-06-04 10:05:00 +0000
committerobache <obache@pkgsrc.org>2011-06-04 10:05:00 +0000
commitec0a4715134c8b74b40d2755b06bc9f5c9112d43 (patch)
treee0df88a2fba38c0b64555c2c85f7d3fe5170fd65 /mk/install
parentdb0868cd9f4fa54f599d2299ecee8826445e8e28 (diff)
downloadpkgsrc-ec0a4715134c8b74b40d2755b06bc9f5c9112d43.tar.gz
Add support undo-replace with USE_DESTDIR.
fixes PR#43689.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/replace.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/install/replace.mk b/mk/install/replace.mk
index 75cd16e44b0..f1918fad77d 100644
--- a/mk/install/replace.mk
+++ b/mk/install/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.11 2009/06/09 08:40:28 joerg Exp $
+# $NetBSD: replace.mk,v 1.12 2011/06/04 10:05:00 obache Exp $
#
# Public targets:
#
@@ -22,6 +22,9 @@
# _flavor-undo-replace:
# Undoes a previous "make _flavor-replace".
+# _flavor-destdir-undo-replace:
+# Undoes a previous "make _flavor-destdir-replace".
+
.if ${_USE_DESTDIR} == "no"
_REPLACE_TARGETS+= ${_PKGSRC_BUILD_TARGETS}
.else
@@ -62,5 +65,9 @@ undo-replace-message: .PHONY
@${PHASE_MSG} "Undoing replacement for ${PKGNAME}"
@${WARNING_MSG} "experimental target - DATA LOSS MAY OCCUR."
+.if ${_USE_DESTDIR} == "no"
su-undo-replace: .PHONY _flavor-undo-replace
+.else
+su-undo-replace: .PHONY _flavor-destdir-undo-replace
+.endif
MAKEFLAGS.su-undo-replace= _UPDATE_RUNNING=yes