cacert-gosignerclient/Makefile
Jan Dittberner 91d4f69a9b Initial signer client implementation
This commit adds the project setup and implements a basic signer client that
sends health check commands to the signer.
2022-11-29 16:23:16 +01:00

20 lines
No EOL
510 B
Makefile

GOFILES := $(shell find -type f -name '*.go')
BUILD_TIME := $(shell date --rfc-3339=seconds)
COMMIT := $(shell git show-ref --head --abbrev=8 HEAD|cut -d ' ' -f 1)
VERSION := $(shell git describe --always --dirty)
all: lint test signerclient
lint:
golangci-lint run
test:
go test -race ./...
signerclient: $(GOFILES)
go build -race -ldflags="-X 'main.date=$(BUILD_TIME)' -X 'main.commit=$(COMMIT)' -X 'main.version=$(VERSION)'" ./cmd/signerclient
clean:
rm -f signerclient
.PHONY: test lint all clean