Skip to content

Commit

Permalink
Keep platform in filename not dirs
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <anders@eknert.com>
  • Loading branch information
anderseknert committed Dec 25, 2021
1 parent 362a2e5 commit b86e155
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
prepare-release:
mkdir -p _release/darwin/amd64 _release/darwin/arm64 _release/linux/amd64 _release/windows/amd64
mkdir -p _release

clean:
rm -rf _release

build-darwin-amd64: prepare-release
GOOS=darwin GOARCH=amd64 go build -o _release/darwin/amd64/kube-review
GOOS=darwin GOARCH=amd64 go build -o _release/kube-review-darwin-amd64

build-darwin-arm64: prepare-release
GOOS=darwin GOARCH=arm64 go build -o _release/darwin/arm64/kube-review
GOOS=darwin GOARCH=arm64 go build -o _release/kube-review-darwin-arm64

build-linux-amd64: prepare-release
GOOS=linux GOARCH=amd64 go build -o _release/linux/amd64/kube-review
GOOS=linux GOARCH=amd64 go build -o _release/kube-review-linux-amd64

build-windows-amd64: prepare-release
GOOS=linux GOARCH=amd64 go build -o _release/windows/amd64/kube-review.exe
GOOS=linux GOARCH=amd64 go build -o _release/kube-review-windows-amd64.exe

build-all: build-darwin-amd64 build-darwin-arm64 build-linux-amd64 build-windows-amd64

0 comments on commit b86e155

Please sign in to comment.