From 85671a076cf0c4c530c25424548a98d26c0b72dd Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Wed, 9 Oct 2024 15:13:34 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix=20Makefile=20so=20it?= =?UTF-8?q?=20doesn't=20re-run=20test=20and=20fmt=20when=20it=20doesn't=20?= =?UTF-8?q?need=20to?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 35491dc..c65ce26 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,8 @@ test: ## Test application and generate coverage report $(MAKE) clean $(MAKE) $(COVEROUT) -$(COVEROUT): $(SOURCES) fmt +$(COVEROUT): $(SOURCES) + $(MAKE) fmt go test ./... -race -cover -coverprofile $@ $(COVERHTML): $(COVEROUT) @@ -33,7 +34,7 @@ $(COVERHTML): $(COVEROUT) report: $(COVERHTML) ## Generate a coverage report .PHONY: open-report -open-report: report ## Open the coverage report in the default browser +open-report: $(COVERHTML) ## Open the coverage report in the default browser xdg-open $(COVERHTML) .PHONY: build