handshake/Makefile

24 lines
335 B
Makefile
Raw Permalink Normal View History

PACKAGES=$(shell go list ./... | grep -v /vendor/)
REVISION=$(shell git rev-parse HEAD)
DEBUG=0
ifeq ($(DEBUG),1)
D =
else
D = @
endif
all: build
protos:
$(D)protobuild --quiet ${PACKAGES}
build:
$(D)CGO_ENABLED=0 go build -v -ldflags '-extldflags "-static"' .
update:
go get -u ./... && \
go mod tidy && \
go mod vendor