From 49457a6abf555c6356092804aa3fa0e7607991f6 Mon Sep 17 00:00:00 2001 From: sneak Date: Fri, 6 Nov 2026 20:29:02 -0800 Subject: [PATCH] more idiomatic makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 615bb94..6a67878 100644 --- a/Makefile +++ b/Makefile @@ -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