8dd9cf3d41
Split check-vulnerable into a general an a flavor-specific part, for consistence with all the other targets.
47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# $NetBSD: deinstall.mk,v 1.8 2007/03/09 00:39:55 rillig Exp $
|
|
|
|
# DEINSTALLDEPENDS controls whether dependencies and dependents are also
|
|
# removed when a package is de-installed. The valid values are:
|
|
#
|
|
# no only the package is removed (if dependencies allow it)
|
|
# yes dependent packages are also removed
|
|
# all dependent packages and unused dependencies are also removed
|
|
#
|
|
DEINSTALLDEPENDS?= no
|
|
|
|
######################################################################
|
|
### deinstall, su-deinstall (PUBLIC)
|
|
######################################################################
|
|
### deinstall is a public target to remove an installed package.
|
|
### It will acquire elevated privileges just-in-time.
|
|
###
|
|
.PHONY: deinstall su-deinstall
|
|
.if !target(deinstall)
|
|
deinstall: su-target
|
|
@${PHASE_MSG} "Deinstalling for ${PKGNAME}"
|
|
.endif
|
|
|
|
_SU_DEINSTALL_TARGETS= acquire-deinstall-lock
|
|
_SU_DEINSTALL_TARGETS+= _flavor-deinstall
|
|
_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
|
|
acquire-deinstall-lock: acquire-localbase-lock
|
|
release-deinstall-lock: release-localbase-lock
|
|
|
|
MAKEFLAGS.su-deinstall= DEINSTALLDEPENDS=${DEINSTALLDEPENDS}
|
|
|
|
######################################################################
|
|
### reinstall (PUBLIC)
|
|
######################################################################
|
|
### reinstall is a special target to re-run the install target.
|
|
### It will acquire elevated privileges just-in-time.
|
|
###
|
|
.PHONY: reinstall
|
|
.if !target(reinstall)
|
|
reinstall: install-clean install
|
|
.endif
|