-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 886 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
BINARY=panzer-plugin
all: deps linux darwin-amd64 darwin-arm64 windows
clean:
go clean
if [ -f ./target/linux_amd64/${BINARY} ] ; then rm ./target/${BINARY}-linux_amd64 ; fi
if [ -f ./target/darwin_amd64/${BINARY} ] ; then rm ./target/${BINARY}-darwin_amd64 ; fi
if [ -f ./target/darwin_arm64/${BINARY} ] ; then rm ./target/${BINARY}-darwin_arm64 ; fi
if [ -f ./target/windows_amd64/${BINARY} ] ; then rm ./target/${BINARY}-windows_amd64 ; fi
deps:
go get -v ./...
linux: deps
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ./target/${BINARY}-linux_amd64 .
darwin-amd64: deps
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o ./target/${BINARY}-darwin_amd64 .
darwin-arm64: deps
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o ./target/${BINARY}-darwin_arm64 .
windows: deps
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o ./target/${BINARY}-windows_amd64 .