Add Makefile

This commit is contained in:
ekzyis 2024-10-21 17:47:17 +02:00
parent d5723e7e17
commit a83ccdd054
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
!assets/*.png
.env
*.sqlite3
chessbot

13
Makefile Normal file
View File

@ -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 <regexp> to only run tests that match <regexp>
go test ./chess -v -count=1