diff options
author | jlam <jlam> | 2006-07-06 22:29:52 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-07-06 22:29:52 +0000 |
commit | dc7af346aac47e74017fb3747b3d76a04373d244 (patch) | |
tree | 86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/install | |
parent | 90ab95f190c275a87ab8fd05386d77758eba31e3 (diff) | |
download | pkgsrc-dc7af346aac47e74017fb3747b3d76a04373d244.tar.gz |
The cookie files are indirectly made using *-cookie targets, so verify
that they are never being created more than once by inserting a check
into the *-cookie targets.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/bsd.install.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/install/bsd.install.mk b/mk/install/bsd.install.mk index 2f8383259d6..ecae846f7d4 100644 --- a/mk/install/bsd.install.mk +++ b/mk/install/bsd.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.install.mk,v 1.5 2006/07/05 22:21:02 jlam Exp $ +# $NetBSD: bsd.install.mk,v 1.6 2006/07/06 22:29:52 jlam Exp $ # # This Makefile fragment is included by bsd.pkg.mk and provides all # variables and targets related to installing packages. @@ -41,4 +41,6 @@ install: ${_PKGSRC_BUILD_TARGETS} install-cookie ### .PHONY: install-cookie install-cookie: + ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_INSTALL_COOKIE} || ${FALSE} + ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_INSTALL_COOKIE:H} ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${_INSTALL_COOKIE} |