diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-05 17:41:11 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-05 17:41:11 +0000 |
commit | e3f0f1869fab80b87a12c5819925281415699ee2 (patch) | |
tree | cb985f3cb407fad54efc46217099126b1955727d /mk/install/deinstall.mk | |
parent | deab97f9bd12ef89e434ec6d19998ca0b57021ae (diff) | |
download | pkgsrc-e3f0f1869fab80b87a12c5819925281415699ee2.tar.gz |
Allow overrides of the public targets, e.g. "install", "package", etc.
if PKG_SKIP_REASON or PKG_FAIL_REASON is defined. This commit adds
!target(...) guards around those target definitions to avoid "duplicate
target definition" warnings.
Diffstat (limited to 'mk/install/deinstall.mk')
-rw-r--r-- | mk/install/deinstall.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/install/deinstall.mk b/mk/install/deinstall.mk index eccbd639911..3e23c64ea41 100644 --- a/mk/install/deinstall.mk +++ b/mk/install/deinstall.mk @@ -1,4 +1,4 @@ -# $NetBSD: deinstall.mk,v 1.1 2006/06/03 23:11:42 jlam Exp $ +# $NetBSD: deinstall.mk,v 1.2 2006/06/05 17:41:11 jlam Exp $ # DEINSTALLDEPENDS controls whether dependencies and dependents are also # removed when a package is de-installed. The valid values are: @@ -16,8 +16,10 @@ DEINSTALLDEPENDS?= no ### It will acquire elevated privileges just-in-time. ### .PHONY: deinstall su-deinstall +.if !target(deinstall) deinstall: su-target @${ECHO_MSG} "${_PKGSRC_IN}> Deinstalling for ${PKGNAME}" +.endif su-deinstall: deinstall-pkg install-clean @@ -30,7 +32,9 @@ MAKEFLAGS.su-deinstall= DEINSTALLDEPENDS=${DEINSTALLDEPENDS} ### It will acquire elevated privileges just-in-time. ### .PHONY: reinstall +.if !target(reinstall) reinstall: install-clean install +.endif ###################################################################### ### deinstall-pkg (PRIVATE, override) |