From cd5ec21164f500b0ebb4c021f5a26534dcfd4cc2 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 9 Apr 2022 13:38:45 +0100 Subject: [PATCH] Add initial Makefile --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..ff5e58a4 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +.PHONY: default +default: + @echo "Choose a Makefile target:" + @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort + +.PHONY: test +test: + cargo test --workspace + +.PHONY: clean +clean: + cargo clean --workspace + +.PHONY: serve +serve: + cargo run -- -vvv start memory + +.PHONY: quick +quick: + cargo build + +.PHONY: build +build: + cargo build --release