22 lines
276 B
Makefile
22 lines
276 B
Makefile
|
_default:
|
||
|
just --choose
|
||
|
|
||
|
clean:
|
||
|
go mod vendor
|
||
|
|
||
|
build:
|
||
|
#!/bin/sh
|
||
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||
|
tags="wayland"
|
||
|
else
|
||
|
tags=""
|
||
|
fi
|
||
|
go build -tags "$tags" -o ./game ./cmd/game/main.go
|
||
|
|
||
|
run: build
|
||
|
./game
|
||
|
|
||
|
check:
|
||
|
@golangci-lint run
|
||
|
@staticcheck ./...
|