Files
gosom__google-maps-scraper/Makefile
T
Georgios Komninos 5c5f2a739e Fixes parsing error (#154)
* Fixes parsing error

* Updates golang to 1.24.4
2025-06-14 07:06:13 +03:00

39 lines
1.3 KiB
Makefile

APP_NAME := google_maps_scraper
VERSION := 1.8.1
default: help
# generate help info from comments: thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## help information about make commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
vet: ## runs go vet
go vet ./...
format: ## runs go fmt
gofmt -s -w .
test: ## runs the unit tests
go test -v -race -timeout 5m ./...
test-cover: ## outputs the coverage statistics
go test -v -race -timeout 5m ./... -coverprofile coverage.out
go tool cover -func coverage.out
rm coverage.out
test-cover-report: ## an html report of the coverage statistics
go test -v ./... -covermode=count -coverpkg=./... -coverprofile coverage.out
go tool cover -html coverage.out -o coverage.html
open coverage.html
vuln: ## runs vulnerability checks
go tool govulncheck -C . -show verbose -format text -scan symbol ./...
lint: ## runs the linter
go tool golangci-lint -v run ./...
cross-compile: ## cross compiles the application
GOOS=linux GOARCH=amd64 go build -o bin/$(APP_NAME)-${VERSION}-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o bin/$(APP_NAME)-${VERSION}-darwin-amd64
GOOS=windows GOARCH=amd64 go build -o bin/$(APP_NAME)-${VERSION}-windows-amd64.exe