check / check (push) Successful in 54s
Remove the template's HTTP service, database and fx wiring. Add exact arithmetic on go/parser and go/constant, a client that runs simplex-chat as a child process and drives its WebSocket API, and the bot, which keeps an auto-accepting address and replies to each message. The image adds the checksum-pinned simplex-chat v7.0.2 on Ubuntu 22.04. Model: opus-5-5
57 lines
964 B
Makefile
57 lines
964 B
Makefile
.PHONY: bootstrap setup test lint fmt fmt-check check build run dev deps docker cibuild clean hooks
|
|
|
|
# Every target is a thin shim over script/. The scripts are the real
|
|
# entrypoints: they carry the project-specific knowledge (flags,
|
|
# timeouts, docker-only linting) that a raw `go test` or `golangci-lint`
|
|
# invocation silently bypasses. Never call the underlying tools
|
|
# directly.
|
|
.DEFAULT_GOAL := check
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
test:
|
|
@script/test
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
check:
|
|
@script/check
|
|
|
|
build:
|
|
go build -o bin/simplexcalc ./cmd/simplexcalc
|
|
|
|
# run and dev need the simplex-chat command-line client on PATH; the
|
|
# image built by `make docker` carries its own.
|
|
run: build
|
|
./bin/simplexcalc run
|
|
|
|
dev:
|
|
go run ./cmd/simplexcalc run
|
|
|
|
deps:
|
|
go mod download
|
|
go mod tidy
|
|
|
|
docker:
|
|
@script/docker
|
|
|
|
cibuild:
|
|
@script/cibuild
|
|
|
|
clean:
|
|
rm -rf bin/
|
|
|
|
hooks:
|
|
@script/install-precommit
|