2018-05-17 23:45:16 +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)
|
|
|
|
GOFLAGS := "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"
|
2018-05-17 23:45:16 +00:00
|
|
|
|
2017-01-23 12:34:22 +00:00
|
|
|
all: ipfs-cluster-ctl
|
2016-12-22 16:14:15 +00:00
|
|
|
|
2018-05-17 23:45:16 +00:00
|
|
|
ipfs-cluster-ctl: $(SRC)
|
2020-03-06 13:49:19 +00:00
|
|
|
go build $(GOFLAGS) -mod=readonly
|
2016-12-22 16:14:15 +00:00
|
|
|
|
2017-01-24 15:24:46 +00:00
|
|
|
build: ipfs-cluster-ctl
|
|
|
|
|
2016-12-22 16:14:15 +00:00
|
|
|
install:
|
2020-03-06 13:49:19 +00:00
|
|
|
go install $(GOFLAGS)
|
2016-12-22 16:14:15 +00:00
|
|
|
|
|
|
|
clean:
|
2017-01-23 12:34:22 +00:00
|
|
|
rm -f ipfs-cluster-ctl
|
2016-12-22 16:14:15 +00:00
|
|
|
|
2017-01-24 15:24:46 +00:00
|
|
|
.PHONY: clean install build
|