CONFIG ?= debug BENCH_OUTPUT ?= build/bench-results.json BENCH_BASELINE ?= BENCH_CALIBRATE ?= 0 BASE ?= main TASK ?= bench MODE ?= smoothness SECONDS ?= 30 SCENARIO ?= swap-2-windows PERF_CONFIG ?= release TRACE_OPTIONS ?= .PHONY: setup doctor build app check-app dmg release-dry-run run test test-serial test-scripts e2e lint hooks format remote-test clean bench bench-record bench-ab bench-remote smoothness idle idle-report soak leaks trace trace-e2e quiet-check check setup doctor build dmg release-dry-run lint hooks format clean check leaks quiet-check: mise run $@ app check-app run e2e: mise run $@ "$(CONFIG)" test: mise run test test-serial: mise run test:serial test-scripts: mise run test:scripts bench: mise run bench "$(BENCH_OUTPUT)" "$(BENCH_BASELINE)" "$(BENCH_CALIBRATE)" bench-record: mise run bench:record "$(BENCH_OUTPUT)" "$(BENCH_BASELINE)" "$(BENCH_CALIBRATE)" bench-ab: mise run bench-ab "$(BASE)" bench-remote: @test -n "$(HOST)" || { printf 'Set HOST to the Mac you authorized.\n' >&2; exit 2; } mise run bench-remote "$(HOST)" "$(TASK)" $(if $(filter bench-ab,$(TASK)),"BASE=$(BASE)",) smoothness idle soak: mise run $@ "$(PERF_CONFIG)" idle-report: mise run idle-report $(if $(PID),"$(PID)",) trace: mise run trace "$(MODE)" --seconds "$(SECONDS)" $(TRACE_OPTIONS) trace-e2e: mise run trace-e2e "$(SCENARIO)" $(TRACE_OPTIONS) remote-test: @test -n "$(HOST)" || { printf 'Set HOST to the remote Mac.\n' >&2; exit 2; } mise run remote-test "$(HOST)"