-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Byron Ruth <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
GOOS=$(shell go env GOOS) | ||
GOARCH=$(shell go env GOARCH) | ||
|
||
build: | ||
mkdir -p dist/$(GOOS)-$(GOARCH) | ||
go build -o dist/$(GOOS)-$(GOARCH)/kmm ./cmd/kmm | ||
|
||
zip: | ||
cd dist/$(GOOS)-$(GOARCH) && zip ../$(GOOS)-$(GOARCH).zip kmm | ||
|
||
dist: | ||
GOOS=linux GOARCH=amd64 make build zip | ||
GOOS=darwin GOARCH=amd64 make build zip | ||
GOOS=windows GOARCH=amd64 make build zip | ||
|
||
.PHONY: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters