diff options
author | jlam <jlam> | 2006-07-06 22:29:52 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-07-06 22:29:52 +0000 |
commit | 2c34acb79346f48360f3430708245ba4e7afe01b (patch) | |
tree | 86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/install | |
parent | 0bdb9384411226f8e9febed88ef5c52911cd9587 (diff) | |
download | pkgsrc-2c34acb79346f48360f3430708245ba4e7afe01b.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} |