From 49dafacf1f1dd5fc943a198e7b242a9792e7e7a4 Mon Sep 17 00:00:00 2001 From: Ben Cartwright-Cox Date: Thu, 19 Jan 2023 11:45:16 +0000 Subject: [PATCH] Tweak Makefile to vet and build stayrtr and friends by default In general I belive it's accepted that the default action of Make is to build. This change does exactly that. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1d747c6..e19b7f7 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,9 @@ OUTPUT_RTRMON := $(DIST_DIR)rtrmon$(SUFFIX) export CGO_ENABLED ?= 0 +.PHONY: build-all +build-all: vet build-stayrtr build-rtrdump build-rtrmon + .PHONY: vet vet: go vet cmd/stayrtr/stayrtr.go @@ -46,9 +49,6 @@ prepare: clean: rm -rf $(DIST_DIR) -.PHONY: build-all -build-all: build-stayrtr build-rtrdump build-rtrmon - .PHONY: build-stayrtr build-stayrtr: prepare go build -trimpath -ldflags $(LDFLAGS) -o $(OUTPUT_STAYRTR) cmd/stayrtr/stayrtr.go