Files
galaxy-game/Makefile
T
2026-03-17 15:10:09 +02:00

29 lines
644 B
Makefile

.DEFAULT_GOAL := build
fmt:
@go fmt ./...
.PHONY:fmt
vet: fmt
@go vet ./...
.PHONY:vet
test:
@mkdir -p artifacts/test
@go clean -testcache
# first, run tests with stdout
@go test -cover ./...
# second, run cached tests with reports output
@go test ./... -coverprofile artifacts/test/coverage.out -json > artifacts/test/coverage.json
@go tool cover -html artifacts/test/coverage.out -o artifacts/test/coverage.html
build: vet test
@go build -o artifacts/bin/server cmd/http/main.go
.PHONY:build
# Supplemental goals
launch:
@mkdir -p artifacts
@go build -o artifacts/client-ui-0.0.0-windows-amd64-executable.exe ./client/cmd/ui/