summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-14 07:51:47 +0000
committerjlam <jlam>2006-06-14 07:51:47 +0000
commit9becaecf2b3ee815c8192d7e66d9a2cdfc6157a0 (patch)
treef6172fa5e33311007dee229b2d6f8a26dd1116d5 /mk/install
parent1d2e016ae94d774bb78db2010c4c11eea64bb59f (diff)
downloadpkgsrc-9becaecf2b3ee815c8192d7e66d9a2cdfc6157a0.tar.gz
Insert cookie checks into the "real-install" and "real-package" targets,
which are invoked in recursive make calls for the "install" and "package" targets respectvely. These recursive make calls prevent the top-level make from seeing all of the targets and computing a full dependency graph, so it becomes possible for some targets to be invoked more than once. This change passes enough information along to the recursive make calls and ensures that the source targets for the real-* targets are only invoked once.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/install.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk
index 53fa6c985a0..cee95885263 100644
--- a/mk/install/install.mk
+++ b/mk/install/install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.7 2006/06/10 03:23:46 jlam Exp $
+# $NetBSD: install.mk,v 1.8 2006/06/14 07:51:47 jlam Exp $
######################################################################
### install (PUBLIC)
@@ -34,12 +34,14 @@ ${_INSTALL_COOKIE}:
### real-install is a helper target to set the PKG_PHASE explicitly to
### "install" before running the remainder of the install targets.
###
+.if !exists(${_INSTALL_COOKIE})
_REAL_INSTALL_TARGETS+= install-check-version
_REAL_INSTALL_TARGETS+= install-message
_REAL_INSTALL_TARGETS+= install-vars
_REAL_INSTALL_TARGETS+= unprivileged-install-hook
_REAL_INSTALL_TARGETS+= install-all
_REAL_INSTALL_TARGETS+= install-cookie
+.endif
.PHONY: real-install
real-install: ${_REAL_INSTALL_TARGETS}