chessbot/Makefile

14 lines
269 B
Makefile
Raw Permalink Normal View History

2024-10-21 15:47:17 +00:00
.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