pkiapi/Makefile

25 lines
270 B
Makefile

.PHONY: build run test clean install-deps
install-deps:
go mod download
go mod tidy
build: install-deps
go build -o pkiapi ./cmd/main.go
run: build
./pkiapi
test:
go test ./...
clean:
rm -f pkiapi
go clean
fmt:
go fmt ./...
lint:
golangci-lint run ./...