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 -trimpath -ldflags="-X 'main.date=$(BUILD_TIME)' -X 'main.commit=$(COMMIT)' -X 'main.version=$(VERSION)'" ./cmd/signerclient clean: rm -f signerclient snapshot: goreleaser build --rm-dist --snapshot .PHONY: test lint all clean snapshot