From 0d0acc8dffe23a754765356c39128accab9ca545 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Mon, 6 May 2024 14:41:07 +0200 Subject: [PATCH] Add a sample makefile. --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f5628b1 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +all: build + +OPTS ?= --progress +Q ?= @ +SHOULD_UPDATE = ./bin/should-update +DBDIR=/tmp/tests-on-dodb + +benchmark-cars: + $(Q)crystal build spec/benchmark-cars.cr $(OPTS) + +build: benchmark-cars + +wipe-db: + rm -r $(DBDIR) + +release: + make build OPTS="--release --progress"