073a0dfa58
This should speed up Dockerfile builds, particularly when building after updating the code since the modules will not be to be re-downloaded.
18 lines
244 B
Makefile
18 lines
244 B
Makefile
# go source files
|
|
SRC := $(shell find .. -type f -name '*.go')
|
|
|
|
all: ipfs-cluster-ctl
|
|
|
|
ipfs-cluster-ctl: $(SRC)
|
|
go build -mod=readonly
|
|
|
|
build: ipfs-cluster-ctl
|
|
|
|
install:
|
|
go install
|
|
|
|
clean:
|
|
rm -f ipfs-cluster-ctl
|
|
|
|
.PHONY: clean install build
|