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