more idiomatic makefile
check / check (push) Successful in 2m9s

This commit is contained in:
sneak committed 2026-11-06 20:29:02 -08:00
1 parent fe1fbeb177
commit 49457a6abf
1 file changed
+4 -2
+4 -2
View File
@@ -3,7 +3,7 @@
# Target bodies live in script/ (Scripts to Rule Them All); the targets
# below are thin shims that call them.
.DEFAULT_GOAL := check
.DEFAULT_GOAL := build
VERSION ?= $(shell git describe --tags --always)
@@ -37,7 +37,9 @@ cibuild:
hooks:
@script/install-precommit
build:
build: ./bin/rtnetmon
./bin/rtnetmon: ./cmd ./internal go.sum go.mod
CGO_ENABLED=0 go build -trimpath -ldflags "-X main.Version=$(VERSION)" \
-o bin/rtnetmon ./cmd/rtnetmon