Skip to content

Commit ca8d4f0

Browse files
committed
Add .exe to windows binary name
Signed-off-by: Kimmo Lehto <[email protected]>
1 parent 761035c commit ca8d4f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ $(bins):
1414
$(eval temp := $(subst -, ,$(subst $(BIN_PREFIX),,$(notdir $@))))
1515
$(eval OS := $(word 1, $(subst -, ,$(temp))))
1616
$(eval ARCH := $(word 2, $(subst -, ,$(temp))))
17-
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build $(BUILD_FLAGS) -o $@ ./cmd/k0s_sort
17+
$(eval EXT := $(if $(filter $(OS),windows),.exe,))
18+
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build $(BUILD_FLAGS) -o $@$(EXT) ./cmd/k0s_sort
1819

1920
bin/sha256sums.txt: $(bins)
2021
sha256sum -b $(bins) | sed 's|bin/||' > $@

0 commit comments

Comments
 (0)