Makefile: use git describe for better commit versions
This commit is contained in:
1 file changed
+2
-2
@@ -22,8 +22,8 @@ HAVE_LINTER := $(shell command -v $(LINT_BIN) 2> /dev/null)
|
|||||||
|
|
||||||
BTCD_DIR :=${GOPATH}/src/$(BTCD_PKG)
|
BTCD_DIR :=${GOPATH}/src/$(BTCD_PKG)
|
||||||
|
|
||||||
COMMIT := $(shell git rev-parse HEAD)
|
COMMIT := $(shell git describe --abbrev=40 --dirty --broken)
|
||||||
LDFLAGS := -ldflags "-X main.Commit=$(COMMIT)"
|
LDFLAGS := -ldflags "-X $(PKG)/build.Commit=$(COMMIT)"
|
||||||
|
|
||||||
GLIDE_COMMIT := 84607742b10f492430762d038e954236bbaf23f7
|
GLIDE_COMMIT := 84607742b10f492430762d038e954236bbaf23f7
|
||||||
BTCD_COMMIT := $(shell cat Gopkg.toml | \
|
BTCD_COMMIT := $(shell cat Gopkg.toml | \
|
||||||
|
|||||||
Reference in new issue
Block a user