This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cairde/makefile
decentral1se d49df79339
Some checks failed
continuous-integration/drone/push Build is failing
refactor: drop ignores, use golangci-lint for check
2023-12-19 16:16:37 +01:00

27 lines
444 B
Makefile

.PHONY: format check clean build run loc test
DEFAULT: build
format:
@gofmt -s -w ./...
check:
@test -z $$(gofmt -l .) || \
(echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1) && \
golangci-lint run ./...
clean:
@find -type f -name "*.log" -exec rm '{}' \;
build: clean
@go build -ldflags="-s -w" -v ./cmd/cairde
run: build
@./cairde
loc:
@find . -name "*.go" | xargs wc -l
test:
@go test ./... -cover -v