From 0ad7bac1d32058a9825d0844cfd85f8ab3f11bb1 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 24 Apr 2013 12:22:06 +0930 Subject: [PATCH] build: only move tar archive to target name on success Signed-off-by: Kevin Shanahan --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74b774db..f1cfc21d 100644 --- a/Makefile +++ b/Makefile @@ -662,7 +662,9 @@ $(DIST_DIR)/tyrutils-$(TYR_VERSION_NUM)-win32.zip: $(DIST_FILES_WIN32) quiet_cmd_git_archive = ' GIT-ARCV $@' cmd_git_archive = \ - git archive --format=tar --prefix=tyrutils-$(TYR_VERSION_NUM)/ HEAD > $@ + git archive --format=tar --prefix=tyrutils-$(TYR_VERSION_NUM)/ HEAD \ + > $(@D)/.$(@F).tmp && \ + mv $(@D)/.$(@F).tmp $@ define do_git_archive $(do_mkdir)