Sagi Dayan
65555b0c68
All checks were successful
build bin / Make sure build does not fail (push) Successful in 4m15s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
34 lines
612 B
Makefile
34 lines
612 B
Makefile
BINARY_NAME=subsonic-tui
|
|
BUILD_FOLDER=build
|
|
|
|
|
|
.PHONY: build
|
|
build:
|
|
GOARCH=amd64 GOOS=darwin go build -o ${BUILD_FOLDER}/${BINARY_NAME}-darwin main.go
|
|
GOARCH=amd64 GOOS=linux go build -o ${BUILD_FOLDER}/${BINARY_NAME}-linux main.go
|
|
GOARCH=amd64 GOOS=windows go build -o ${BUILD_FOLDER}/${BINARY_NAME}-windows main.go
|
|
|
|
run: build
|
|
./${BINARY_NAME}
|
|
|
|
clean:
|
|
go clean
|
|
rm ${BINARY_NAME}-darwin
|
|
rm ${BINARY_NAME}-linux
|
|
rm ${BINARY_NAME}-windows
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
test_coverage:
|
|
go test ./... -coverprofile=coverage.out
|
|
|
|
dep:
|
|
go mod tidy
|
|
go mod vendor
|
|
|
|
vet:
|
|
go vet
|
|
|
|
lint:
|
|
golangci-lint run --enable-all
|