summaryrefslogtreecommitdiff
path: root/mk/install/bsd.install.mk
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-05 17:41:11 +0000
committerjlam <jlam>2006-06-05 17:41:11 +0000
commit530a3fe203d3457c5252c89b096812e49df4f491 (patch)
treecb985f3cb407fad54efc46217099126b1955727d /mk/install/bsd.install.mk
parent19af245d83cc86a024e536ce8619ba13a152a7ed (diff)
downloadpkgsrc-530a3fe203d3457c5252c89b096812e49df4f491.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/bsd.install.mk')
-rw-r--r--mk/install/bsd.install.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/install/bsd.install.mk b/mk/install/bsd.install.mk
index 2cfcb186e04..bd30a8e4f23 100644
--- a/mk/install/bsd.install.mk
+++ b/mk/install/bsd.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.install.mk,v 1.1 2006/06/03 23:11:42 jlam Exp $
+# $NetBSD: bsd.install.mk,v 1.2 2006/06/05 17:41:11 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to installing packages.
@@ -21,7 +21,9 @@ _INSTALL_COOKIE= ${WRKDIR}/.install_done
###
.if defined(NO_INSTALL)
.PHONY: install
+. if !target(install)
install: ${_PKGSRC_BUILD_TARGETS} install-cookie
+. endif
.else
. include "${PKGSRCDIR}/mk/install/install.mk"
.endif