@cryptotaxi247 / kubo / commits / f55206d33

make: reimplement commit ref in version

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Feb 12, 2017 at 02:14 UTC f55206d3360db1db14245433e0f85c1f3c299ac1
1 file changed +2
cmd/ipfs/Rules.mk
+2
@@ -12,6 +12,8 @@ PATH := $(realpath $(d)):$(PATH)
12 # DEPS_OO_$(d) += merkledag/pb/merkledag.pb.go namesys/pb/namesys.pb.go
13 # DEPS_OO_$(d) += pin/internal/pb/header.pb.go unixfs/pb/unixfs.pb.go
14
15 +$(IPFS_BIN_$(d)): GOFLAGS += -ldflags="-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(shell git rev-parse --short HEAD)"
16 +
17 # uses second expansion to collect all $(DEPS_GO)
18 $(IPFS_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS #| $(DEPS_OO_$(d))
19 $(go-build)