From f1eacf8da20b6cac0b3a29d0b762aaa361adac29 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Mon, 16 Sep 2024 11:00:20 -0700 Subject: [PATCH] make: ensure phony targets are set Ensure the verify and fix Makefile targets are set as PHONY. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fdbd0bf..e0b82aa 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ all: gofail clean: rm -f gofail +.PHONY: verify verify: verify-gofmt .PHONY: verify-gofmt @@ -19,12 +20,13 @@ verify-gofmt: test: go test -v --race -cpu=1,2,4 ./code/ ./runtime/ +.PHONY: fix fix: fix-gofmt .PHONY: fix-gofmt fix-gofmt: gofmt -w . -gofail: +gofail: GO_BUILD_FLAGS="-v" ./build.sh ./gofail --version