2024-05-19 04:17:38 +00:00
|
|
|
.PHONY: examples
|
|
|
|
|
|
|
|
default: run
|
|
|
|
|
|
|
|
run: simgame
|
|
|
|
|
|
|
|
simgame: examples
|
2024-05-19 06:00:19 +00:00
|
|
|
RANDOM_SHUFFLE=1 ./bin/simgame
|
2024-05-19 04:17:38 +00:00
|
|
|
|
|
|
|
clean:
|
2024-05-19 05:11:26 +00:00
|
|
|
rm -rf bin *.test
|
2019-03-24 03:59:45 +00:00
|
|
|
|
|
|
|
test:
|
2024-05-19 06:00:19 +00:00
|
|
|
go test -count=1 .
|
2024-05-19 04:17:38 +00:00
|
|
|
|
|
|
|
examples:
|
|
|
|
test -d bin || mkdir bin
|
|
|
|
go build -o bin/ ./examples/...
|
2024-05-19 06:25:55 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
golangci-lint run
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
go fmt ./...
|