You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
420 B
Makefile
19 lines
420 B
Makefile
2 years ago
|
BINARY_NAME=obp
|
||
|
|
||
|
build-all:
|
||
|
GOOS=darwin GOARCH=amd64 go build -o bin/${BINARY_NAME}-darwin
|
||
|
GOOS=linux GOARCH=amd64 go build -o bin/${BINARY_NAME}-linux
|
||
|
GOOS=windows GOARCH=amd64 go build -o bin/${BINARY_NAME}-windows.exe
|
||
|
|
||
|
clean-all:
|
||
|
go clean
|
||
|
rm bin/${BINARY_NAME}-darwin
|
||
|
rm bin/${BINARY_NAME}-linux
|
||
|
rm bin/${BINARY_NAME}-windows.exe
|
||
|
|
||
|
test:
|
||
|
go test ./...
|
||
|
|
||
|
test_coverage:
|
||
|
go test ./... -coverprofile=coverage.out
|