Compare commits

...

1 Commits

Author SHA1 Message Date
a83ccdd054 Add Makefile 2024-10-21 17:51:29 +02:00
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
!assets/*.png !assets/*.png
.env .env
*.sqlite3 *.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