Skip to content

Commit

Permalink
Cleanup Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
iobear committed Feb 5, 2024
1 parent a3d60e5 commit 69317c4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile
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)

0 comments on commit 69317c4

Please sign in to comment.