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/flavor | |
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/flavor')
-rw-r--r-- | mk/flavor/pkg/depends.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/flavor/pkg/depends.mk b/mk/flavor/pkg/depends.mk index 7e9ca172c18..faac2b30dba 100644 --- a/mk/flavor/pkg/depends.mk +++ b/mk/flavor/pkg/depends.mk @@ -1,4 +1,4 @@ -# $NetBSD: depends.mk,v 1.7 2006/06/14 03:00:03 jlam Exp $ +# $NetBSD: depends.mk,v 1.8 2006/07/06 22:29:52 jlam Exp $ _DEPENDS_FILE= ${WRKDIR}/.depends _REDUCE_DEPENDS_CMD= ${SETENV} CAT=${CAT:Q} \ @@ -36,6 +36,8 @@ show-depends: ### .PHONY: depends-cookie depends-cookie: ${_DEPENDS_FILE} + ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_DEPENDS_COOKIE} || ${FALSE} + ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_DEPENDS_COOKIE:H} ${_PKG_SILENT}${_PKG_DEBUG}${MV} -f ${_DEPENDS_FILE} ${_DEPENDS_COOKIE} ${_DEPENDS_FILE}: |