2023-12-19 17:37:15 +00:00
|
|
|
commitSha := d15bb69a9d2b353d73ead79a29f668dca3e1dc4a
|
2023-06-22 11:54:09 +00:00
|
|
|
|
|
|
|
all: perf
|
|
|
|
|
|
|
|
perf: rust-libp2p-${commitSha}/target/release/perf
|
|
|
|
cp ./rust-libp2p-${commitSha}/target/release/perf .
|
|
|
|
|
|
|
|
rust-libp2p-${commitSha}/target/release/perf: rust-libp2p-${commitSha}
|
2023-10-25 11:24:08 +00:00
|
|
|
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)/rust-libp2p-${commitSha}":/usr/src/myapp -w /usr/src/myapp rust:1.73 cargo build --release --bin perf
|
2023-06-22 11:54:09 +00:00
|
|
|
|
|
|
|
rust-libp2p-${commitSha}: rust-libp2p-${commitSha}.zip
|
|
|
|
unzip -o rust-libp2p-${commitSha}.zip
|
|
|
|
|
|
|
|
rust-libp2p-${commitSha}.zip:
|
|
|
|
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/${commitSha}.zip"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm rust-libp2p-*.zip
|
|
|
|
rm -rf rust-libp2p-*
|
|
|
|
rm perf
|
|
|
|
|
|
|
|
.PHONY: all clean
|