makefile: use git email for AUTHOR value
Local users often don't map well to names known in the org. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
8268083008
commit
61993fab47
2
Makefile
2
Makefile
|
@ -31,7 +31,7 @@ CGO_CFLAGS = -I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
|
||||||
GOBIN = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
|
GOBIN = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
|
||||||
GOPATH ?= $(HOME)/go
|
GOPATH ?= $(HOME)/go
|
||||||
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
||||||
AUTHOR = $(shell echo $$USER)
|
AUTHOR ?= $(shell git config user.email || echo $$USER)
|
||||||
|
|
||||||
ENABLE_METRICS ?= true
|
ENABLE_METRICS ?= true
|
||||||
BUILD_FLAGS ?= $(shell echo "-ldflags='\
|
BUILD_FLAGS ?= $(shell echo "-ldflags='\
|
||||||
|
|
Loading…
Reference in New Issue