diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:29:11 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:29:11 +0200 |
commit | 01a849c6b26afd076989f645c6153d8ce1422281 (patch) | |
tree | a02fbbfbd958b8492dd3dc7bd58b4bb1d8566080 /2018-tower-defence/Makefile | |
parent | 59f8b6a8ef1abfd0556cc940ccb64305fcdf2968 (diff) | |
parent | 7ec48d0d454499177b63bc5bd512a3a2d6baa839 (diff) |
Merge branch 'tower-defence-main'
Diffstat (limited to '2018-tower-defence/Makefile')
-rw-r--r-- | 2018-tower-defence/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2018-tower-defence/Makefile b/2018-tower-defence/Makefile new file mode 100644 index 0000000..b5005da --- /dev/null +++ b/2018-tower-defence/Makefile @@ -0,0 +1,24 @@ +default: build + +build: + cargo build --release + +test: + cargo test --release + +bench: + cargo run --release --features "benchmarking" --bin perf-test + +profile: + cargo build --release --features "benchmarking single-threaded extended-time" + mkdir -p target/profile + perf record -g target/release/perf-test + perf report + +clean: + cargo clean + +submission.zip: bot.json Cargo.lock Cargo.toml src + zip -r9 submission.zip bot.json Cargo.lock Cargo.toml src + +.PHONY: default build test bench profile clean |