From 5f930c262c482659f91aaf03f256400d3d418c56 Mon Sep 17 00:00:00 2001 From: Romain LE JEUNE Date: Thu, 9 Feb 2023 13:01:27 +0100 Subject: [PATCH] feat(GODT-2352): only copy resource file when needed. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 795cf8b0..8d490b6e 100644 --- a/Makefile +++ b/Makefile @@ -96,9 +96,9 @@ endif ifeq "${GOOS}" "windows" go-build-finalize= \ - powershell Copy-Item ${ROOT_DIR}/${RESOURCE_FILE} ${4} && \ - $(call go-build,$(1),$(2),$(3)) && \ - powershell Remove-Item ${4} -Force + $(if $(4),powershell Copy-Item ${ROOT_DIR}/${RESOURCE_FILE} ${4} &&,) \ + $(call go-build,$(1),$(2),$(3)) \ + $(if $(4), && powershell Remove-Item ${4} -Force,) endif ${EXE_NAME}: gofiles ${RESOURCE_FILE}