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.
obsidian-pipeline/Makefile

25 lines
533 B
Makefile

BINARY_NAME=obp
build-all:
2 years ago
go version
GOOS=darwin GOARCH=amd64 go build -o bin/${BINARY_NAME}-darwin cmd/obp/*.go
GOOS=linux GOARCH=amd64 go build -o bin/${BINARY_NAME}-linux cmd/obp/*.go
GOOS=windows GOARCH=amd64 go build -o bin/${BINARY_NAME}-windows.exe cmd/obp/*.go
clean-all:
2 years ago
go version
go clean
rm bin/${BINARY_NAME}-darwin
rm bin/${BINARY_NAME}-linux
rm bin/${BINARY_NAME}-windows.exe
test:
2 years ago
go version
go mod tidy
go test ./...
test_coverage:
2 years ago
go version
go mod tidy
go test ./... -coverprofile=coverage.out