2019-11-30 02:46:32 +00:00
|
|
|
# go source files
|
2020-03-06 13:49:19 +00:00
|
|
|
SRC := $(shell find ../.. -type f -name '*.go')
|
|
|
|
GOPATH := $(shell go env GOPATH)
|
2020-10-20 12:32:20 +00:00
|
|
|
GOFLAGS := "-trimpath"
|
2019-11-30 02:46:32 +00:00
|
|
|
|
2019-12-13 08:47:01 +00:00
|
|
|
all: ipfs-cluster-follow
|
2019-11-30 02:46:32 +00:00
|
|
|
|
|
|
|
ipfs-cluster-follow: $(SRC)
|
2020-03-06 13:49:19 +00:00
|
|
|
go build $(GOFLAGS) -mod=readonly -ldflags "-X main.commit=$(shell git rev-parse HEAD)"
|
2019-11-30 02:46:32 +00:00
|
|
|
|
|
|
|
build: ipfs-cluster-follow
|
|
|
|
|
|
|
|
install:
|
2020-03-06 13:49:19 +00:00
|
|
|
go install $(GOFLAGS) -ldflags "-X main.commit=$(shell git rev-parse HEAD)"
|
2019-11-30 02:46:32 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ipfs-cluster-follow
|
|
|
|
|
|
|
|
.PHONY: clean install build
|