18 lines
270 B
Makefile
18 lines
270 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"' .
|