handshake/Makefile
Vincent Batts e8c3f01fa2
Makefile: target to update deps
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-01-05 15:58:15 -05:00

23 lines
335 B
Makefile

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