5 lines
103 B
Makefile
5 lines
103 B
Makefile
GIT_COMMIT := $(shell git rev-list -1 HEAD)
|
|
|
|
all:
|
|
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)"
|