From ca8d4f0210b3eb57736681c1c4ff6d4f8ceeb5f7 Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Thu, 11 Jan 2024 14:36:35 +0200 Subject: [PATCH] Add .exe to windows binary name Signed-off-by: Kimmo Lehto --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0496881..57cedea 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,8 @@ $(bins): $(eval temp := $(subst -, ,$(subst $(BIN_PREFIX),,$(notdir $@)))) $(eval OS := $(word 1, $(subst -, ,$(temp)))) $(eval ARCH := $(word 2, $(subst -, ,$(temp)))) - GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build $(BUILD_FLAGS) -o $@ ./cmd/k0s_sort + $(eval EXT := $(if $(filter $(OS),windows),.exe,)) + GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build $(BUILD_FLAGS) -o $@$(EXT) ./cmd/k0s_sort bin/sha256sums.txt: $(bins) sha256sum -b $(bins) | sed 's|bin/||' > $@