Add Makefile
This commit is contained in:
parent
d5723e7e17
commit
a83ccdd054
|
@ -2,3 +2,4 @@
|
||||||
!assets/*.png
|
!assets/*.png
|
||||||
.env
|
.env
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
|
chessbot
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue