summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-03-08 11:46:14 +0000
committerobache <obache@pkgsrc.org>2014-03-08 11:46:14 +0000
commitb8f470c963f4066bde0a53bae0f5d606569aa494 (patch)
treec2a457351e4d28a1dddb86992a5baed10d679048 /mk
parentbc74047155e080b6148d6569f86916c1f479aa14 (diff)
downloadpkgsrc-b8f470c963f4066bde0a53bae0f5d606569aa494.tar.gz
Clean up target file if failed.
fixes PR pkg/48294.
Diffstat (limited to 'mk')
-rw-r--r--mk/pkgformat/pkg/depends.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/pkgformat/pkg/depends.mk b/mk/pkgformat/pkg/depends.mk
index c85ef5054e8..ab39203b670 100644
--- a/mk/pkgformat/pkg/depends.mk
+++ b/mk/pkgformat/pkg/depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: depends.mk,v 1.3 2013/05/09 23:37:26 riastradh Exp $
+# $NetBSD: depends.mk,v 1.4 2014/03/08 11:46:14 obache Exp $
# This command prints out the dependency patterns for all full (run-time)
# dependencies of the package.
@@ -162,13 +162,13 @@ _DEPENDS_INSTALL_CMD= \
${_DEPENDS_FILE}:
${RUN} ${MKDIR} ${.TARGET:H}
- ${RUN} ${_LIST_DEPENDS_CMD} > ${.TARGET}
+ ${RUN} ${_LIST_DEPENDS_CMD} > ${.TARGET} || (${RM} -f ${.TARGET} && ${FALSE})
${_RDEPENDS_FILE}: ${_DEPENDS_FILE}
- ${RUN} ${_RESOLVE_DEPENDS_CMD} > ${.TARGET}
+ ${RUN} ${_RESOLVE_DEPENDS_CMD} > ${.TARGET} || (${RM} -f ${.TARGET} && ${FALSE})
${_RRDEPENDS_FILE}: ${_RDEPENDS_FILE}
- ${RUN} ${_REDUCE_RESOLVED_DEPENDS_CMD} > ${.TARGET}
+ ${RUN} ${_REDUCE_RESOLVED_DEPENDS_CMD} > ${.TARGET} || (${RM} -f ${.TARGET} && ${FALSE})
# _pkgformat-install-dependencies:
# Installs any missing dependencies.