.PHONY: build lint fmt test check

build:
	go build ./...

lint:
	golangci-lint run ./...

fmt:
	gofmt -l .
	@test -z "$$(gofmt -l .)" || (echo "gofmt-Verstoesse gefunden, siehe oben" && exit 1)

test:
	go test ./... -p 1 -count=1

check: build
	go vet ./...
	golangci-lint run ./...
	go test ./... -p 1 -count=1
