From a83ccdd05467ae3961f751ffb38fc1e967aae17d Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 21 Oct 2024 17:47:17 +0200 Subject: [PATCH] Add Makefile --- .gitignore | 1 + Makefile | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 729536c..9058b9c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ !assets/*.png .env *.sqlite3 +chessbot diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..090f874 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: build test + +SOURCES := main.go $(shell find chess -name '*.go') + +build: chessbot + +chessbot: $(SOURCES) + go build -o chessbot . + +test: + ## -count=1 is used to disable cache + ## use -run to only run tests that match + go test ./chess -v -count=1