mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
make: fix make install not using ldflags for git hash
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
a8b56d3ad7
commit
bf23a81bb3
3
Rules.mk
3
Rules.mk
@ -99,8 +99,7 @@ nofuse: GOTAGS += nofuse
|
||||
nofuse: build
|
||||
.PHONY: nofuse
|
||||
|
||||
install: $$(DEPS_GO)
|
||||
go install $(go-flags-with-tags) ./cmd/ipfs
|
||||
install: cmd/ipfs-install
|
||||
.PHONY: install
|
||||
|
||||
install_unsupported:
|
||||
|
||||
@ -12,12 +12,20 @@ PATH := $(realpath $(d)):$(PATH)
|
||||
# DEPS_OO_$(d) += merkledag/pb/merkledag.pb.go namesys/pb/namesys.pb.go
|
||||
# DEPS_OO_$(d) += pin/internal/pb/header.pb.go unixfs/pb/unixfs.pb.go
|
||||
|
||||
$(IPFS_BIN_$(d)): GOFLAGS += -ldflags="-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(shell git rev-parse --short HEAD)"
|
||||
$(d)_flags =-ldflags="-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(shell git rev-parse --short HEAD)"
|
||||
|
||||
$(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)
|
||||
|
||||
# uses second expansion to collect all $(DEPS_GO)
|
||||
$(IPFS_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS #| $(DEPS_OO_$(d))
|
||||
$(go-build)
|
||||
|
||||
|
||||
$(d)-install: GOFLAGS += $(cmd/ipfs_flags)
|
||||
$(d)-install:
|
||||
go install $(go-flags-with-tags) ./cmd/ipfs
|
||||
.PHONY: $(d)-install
|
||||
|
||||
COVER_BIN_$(d) := $(d)/ipfs-test-cover
|
||||
CLEAN += $(COVER_BIN_$(d))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user