Skip to content

Commit f595b53

Browse files
authored
chore: moving order of GOOS and GOARCh env sets in makefile (#1037)
1 parent 6c947e2 commit f595b53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ MKDIR := powershell.exe -NoProfile -Command New-Item -ItemType Directory -Force
1313
RMDIR := powershell.exe -NoProfile -Command Remove-Item -Recurse -Force
1414
endif
1515

16+
# Build defaults.
17+
GOOS ?= $(shell go env GOOS)
18+
GOARCH ?= $(shell go env GOARCH)
19+
GOOSES ?= "linux windows" # To override at the cli do: GOOSES="\"darwin bsd\""
20+
GOARCHES ?= "amd64 arm64" # To override at the cli do: GOARCHES="\"ppc64 mips\""
21+
1622
# Windows specific extensions
1723
ifeq ($(GOOS),windows)
1824
ARCHIVE_CMD = zip -9lq
1925
ARCHIVE_EXT = zip
2026
EXE_EXT = .exe
2127
endif
2228

23-
# Build defaults.
24-
GOOS ?= $(shell go env GOOS)
25-
GOARCH ?= $(shell go env GOARCH)
26-
GOOSES ?= "linux windows" # To override at the cli do: GOOSES="\"darwin bsd\""
27-
GOARCHES ?= "amd64 arm64" # To override at the cli do: GOARCHES="\"ppc64 mips\""
28-
2929
# Build directories.
3030
REPO_ROOT = $(shell git rev-parse --show-toplevel)
3131
CNM_DIR = $(REPO_ROOT)/cnm/plugin

0 commit comments

Comments
 (0)