mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-19 13:17:32 +02:00
Makefile: use git describe for better commit versions
This commit is contained in:
parent
0903fe3183
commit
ecc5d267e3
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -22,8 +22,8 @@ HAVE_LINTER := $(shell command -v $(LINT_BIN) 2> /dev/null)
|
|||
|
||||
BTCD_DIR :=${GOPATH}/src/$(BTCD_PKG)
|
||||
|
||||
COMMIT := $(shell git rev-parse HEAD)
|
||||
LDFLAGS := -ldflags "-X main.Commit=$(COMMIT)"
|
||||
COMMIT := $(shell git describe --abbrev=40 --dirty --broken)
|
||||
LDFLAGS := -ldflags "-X $(PKG)/build.Commit=$(COMMIT)"
|
||||
|
||||
GLIDE_COMMIT := 84607742b10f492430762d038e954236bbaf23f7
|
||||
BTCD_COMMIT := $(shell cat Gopkg.toml | \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue