-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
.PHONY: all windows darwin-amd64 darwin-arm64 linux | ||
.PHONY: all windows macintel macarm linux rpi | ||
|
||
BINARY_NAME=dashGoat | ||
SOURCE_FILE=./cmd/dashgoat | ||
|
||
all: windows darwin-amd64 darwin-arm64 linux | ||
all: windows macintel macarm linux rpi | ||
|
||
windows: | ||
GOOS=windows GOARCH=amd64 go build -o build/$(BINARY_NAME)-amd64.exe $(SOURCE_FILE) | ||
|
||
intelmac: | ||
GOOS=darwin GOARCH=amd64 go build -o build/$(BINARY_NAME)-intelmac $(SOURCE_FILE) | ||
macintel: | ||
GOOS=darwin GOARCH=amd64 go build -o build/$(BINARY_NAME)-macintel $(SOURCE_FILE) | ||
|
||
armmac: | ||
GOOS=darwin GOARCH=arm64 go build -o build/$(BINARY_NAME)-armmac $(SOURCE_FILE) | ||
macarm: | ||
GOOS=darwin GOARCH=arm64 go build -o build/$(BINARY_NAME)-macarm $(SOURCE_FILE) | ||
|
||
linux: | ||
GOOS=linux GOARCH=amd64 go build -o build/$(BINARY_NAME) $(SOURCE_FILE) | ||
|
||
rpi: | ||
GOOS=linux GOARCH=arm GOARM=5 go build -o build/$(BINARY_NAME) $(SOURCE_FILE) |