Files
GoCalGoo/Makefile

26 lines
276 B
Makefile

.PHONY: build run test lint fmt clean tidy
BINARY := gocalgoo
CMD := ./cmd/gocalgoo
build:
go build -o $(BINARY) $(CMD)
run:
go run $(CMD) $(ARGS)
test:
go test ./... -v
lint:
golangci-lint run ./...
fmt:
gofmt -w .
tidy:
go mod tidy
clean:
rm -f $(BINARY)