libp2p-test-plans/perf/impl/go-libp2p/v0.29/Makefile

13 lines
332 B
Makefile
Raw Normal View History

2023-07-26 12:01:46 +00:00
GO_FILES := $(wildcard *.go)
all: perf
perf: $(GO_FILES)
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)":/usr/src/myapp -w /usr/src/myapp -e GOCACHE=/usr/src/myapp/.cache golang:$(shell awk '/^go [0-9]+\.[0-9]+$$/ {print $$2}' go.mod) go build -o perf .
2023-07-26 12:01:46 +00:00
clean:
rm -r .cache
rm perf
.PHONY: all clean