summaryrefslogtreecommitdiff
path: root/2018-tower-defence/Makefile
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2022-04-19 21:26:49 +0200
committerJustin Wernick <justin@worthe-it.co.za>2022-04-19 21:26:49 +0200
commit7ec48d0d454499177b63bc5bd512a3a2d6baa839 (patch)
tree23d34d45dbb3ae977710361501a3dde3544734d1 /2018-tower-defence/Makefile
parent1e21ebed15321aacbba53121cb40bbc60f4db1cc (diff)
Refile for merging repos
Diffstat (limited to '2018-tower-defence/Makefile')
-rw-r--r--2018-tower-defence/Makefile24
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