2023-06-26 08:35:44 +00:00
|
|
|
commitSha := a5cd126c97b6d8d8328141bfa84cc57e74ebc57c
|
2023-06-22 11:54:09 +00:00
|
|
|
|
|
|
|
all: perf
|
|
|
|
|
|
|
|
perf: perf-${commitSha}
|
|
|
|
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)/perf-${commitSha}":/usr/src/myapp -w /usr/src/myapp -e GOCACHE=/usr/src/myapp/.cache golang:1.20 go build -o perf cmd/main.go
|
|
|
|
cp perf-${commitSha}/perf .
|
|
|
|
|
|
|
|
perf-${commitSha}: perf-${commitSha}.zip
|
|
|
|
unzip -o perf-${commitSha}.zip
|
|
|
|
|
|
|
|
perf-${commitSha}.zip:
|
|
|
|
wget -O $@ "https://github.com/quic-go/perf/archive/${commitSha}.zip"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm perf-*.zip
|
|
|
|
rm -rf perf-*
|
|
|
|
rm perf
|
|
|
|
rm .cache
|
|
|
|
rm v0.27
|
|
|
|
|
|
|
|
.PHONY: all clean
|