2024-01-16 15:21:35 +00:00
|
|
|
BINARY_NAME=subsonic-tui
|
|
|
|
BUILD_FOLDER=build
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: build
|
2024-12-15 17:24:10 +00:00
|
|
|
build: dep
|
2024-01-16 15:21:35 +00:00
|
|
|
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
|
2024-12-15 17:24:10 +00:00
|
|
|
rm -rf ./${BUILD_FOLDER}
|
2024-01-16 15:21:35 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
go test ./...
|
|
|
|
|
|
|
|
test_coverage:
|
|
|
|
go test ./... -coverprofile=coverage.out
|
|
|
|
|
|
|
|
dep:
|
2024-12-15 09:22:46 +00:00
|
|
|
go mod tidy
|
|
|
|
go mod vendor
|
2024-01-16 15:21:35 +00:00
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet
|
|
|
|
|
|
|
|
lint:
|
|
|
|
golangci-lint run --enable-all
|