From 983ec1a8fa022ba2a448e5d5c6f825c0a2608e90 Mon Sep 17 00:00:00 2001 From: Olivier Duclos Date: Mon, 4 Dec 2023 13:47:27 +0100 Subject: [PATCH] BUILD/MINOR: small cleanup in the Makefile --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 45b89fc..15dd895 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,14 @@ -PROJECT_PATH=${PWD} +PROJECT_PATH=$(shell pwd) GOLANGCI_LINT_VERSION=1.54.1 .PHONY: generate generate: - go install mvdan.cc/gofumpt@latest - echo ${PROJECT_PATH} go run generate/*.go ${PROJECT_PATH} - gofumpt -l -w . + $(MAKE) format .PHONY: format format: + go install mvdan.cc/gofumpt@latest gofumpt -l -w . .PHONY: test