We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7614d6f + f11d445 commit eeb45f1Copy full SHA for eeb45f1
Makefile
@@ -1,7 +1,9 @@
1
-REVISION = $(shell git describe --tags | cut -c 2-)
2
-$(info Make factomd v$(REVISION))
+REVISION = $(shell git describe --tags)
+$(info Make factomd $(REVISION))
3
4
-LDFLAGS = "-s -w -X github.com/FactomProject/factomd/engine.Build=`git rev-parse HEAD` -X github.com/FactomProject/factomd/engine.FactomdVersion=$(REVISION)"
+# Strip leading 'v'
5
+VERSION = $(shell echo $(REVISION) | cut -c 2-)
6
+LDFLAGS = "-s -w -X github.com/FactomProject/factomd/engine.Build=`git rev-parse HEAD` -X github.com/FactomProject/factomd/engine.FactomdVersion=$(VERSION)"
7
8
build:
9
go build -trimpath -ldflags $(LDFLAGS) -v
0 commit comments