diff options
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/replace.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mk/install/replace.mk b/mk/install/replace.mk index a4f6c8db3a7..75cd16e44b0 100644 --- a/mk/install/replace.mk +++ b/mk/install/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.10 2007/03/09 03:28:58 rillig Exp $ +# $NetBSD: replace.mk,v 1.11 2009/06/09 08:40:28 joerg Exp $ # # Public targets: # @@ -14,12 +14,19 @@ # Private targets that must be defined by the package system flavor: # # _flavor-replace: -# Updates a package in-place on the system. +# Updates a package in-place on the system (USE_DESTDIR=no). +# +# _flavor-destdir-replace: +# Updates a package in-place on the system (USE_DESTDIR=yes). # # _flavor-undo-replace: # Undoes a previous "make _flavor-replace". +.if ${_USE_DESTDIR} == "no" _REPLACE_TARGETS+= ${_PKGSRC_BUILD_TARGETS} +.else +_REPLACE_TARGETS+= package +.endif _REPLACE_TARGETS+= replace-message _REPLACE_TARGETS+= unprivileged-install-hook @@ -38,7 +45,11 @@ replace-message: .PHONY @${PHASE_MSG} "Replacing for ${PKGNAME}" @${WARNING_MSG} "experimental target - DATA LOSS MAY OCCUR." +.if ${_USE_DESTDIR} == "no" su-replace: .PHONY _flavor-replace +.else +su-replace: .PHONY _flavor-destdir-replace +.endif MAKEFLAGS.su-replace= _UPDATE_RUNNING=yes # |