-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
18 lines (16 loc) · 837 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BINARY_NAME=steam-update-notifier
.PHONY: test
build:
go build -o bin/${BINARY_NAME} cmd/steam-update-notifier/main.go
clean:
go clean
rm bin/${BINARY_NAME}*
test:
go test -v -coverpkg ./... ./test/...
release:
GOOS=darwin GOARCH=arm64 go build -o bin/${BINARY_NAME}-darwin-arm64 cmd/steam-update-notifier/main.go
GOOS=linux GOARCH=arm64 go build -o bin/${BINARY_NAME}-linux-arm64 cmd/steam-update-notifier/main.go
GOOS=darwin GOARCH=amd64 go build -o bin/${BINARY_NAME}-darwin-amd64 cmd/steam-update-notifier/main.go
GOOS=linux GOARCH=amd64 go build -o bin/${BINARY_NAME}-linux-amd64 cmd/steam-update-notifier/main.go
GOOS=windows GOARCH=amd64 go build -o bin/${BINARY_NAME}-windows-amd64 cmd/steam-update-notifier/main.go
GOOS=windows GOARCH=386 go build -o bin/${BINARY_NAME}-windows-386 cmd/steam-update-notifier/main.go