diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-06 22:29:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-06 22:29:52 +0000 |
commit | a8fcae392540bc78e93e66eec058d65e59b7af55 (patch) | |
tree | 86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/package | |
parent | a0f0e953977ff6d61f9c043c0ff5b406cedf2c89 (diff) | |
download | pkgsrc-a8fcae392540bc78e93e66eec058d65e59b7af55.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/package')
-rw-r--r-- | mk/package/package.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/package/package.mk b/mk/package/package.mk index 5a70008711c..36af5ef3deb 100644 --- a/mk/package/package.mk +++ b/mk/package/package.mk @@ -1,4 +1,4 @@ -# $NetBSD: package.mk,v 1.12 2006/07/06 22:08:32 jlam Exp $ +# $NetBSD: package.mk,v 1.13 2006/07/06 22:29:53 jlam Exp $ ###################################################################### ### package (PUBLIC) @@ -63,6 +63,7 @@ package-message: ### .PHONY: package-cookie package-cookie: + ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_PACKAGE_COOKIE} || ${FALSE} ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_PACKAGE_COOKIE:H} ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${_PACKAGE_COOKIE} |