From 06cd6f9c11097d7531873aba46b8994f8d510fec Mon Sep 17 00:00:00 2001 From: sharkpc138 Date: Thu, 10 Oct 2024 13:26:57 +0900 Subject: [PATCH] fix makefile to check the swag binary --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cb85c07..ab83ff3 100644 --- a/Makefile +++ b/Makefile @@ -93,9 +93,9 @@ $(GOLANGCI_LINTER): $(LOCALBIN) @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(LOCALBIN) $(GOLANGCI_LINT_TOOLS_VERSION) .PHONY: swag -swag: ## Install swag if necessary. +swag: $(SWAG) ## Install swag if necessary. $(SWAG): $(LOCALBIN) - @GOBIN=$(LOCALBIN) go install github.com/swaggo/swag/cmd/swag@$(SWAG_VERSION) + GOBIN=$(LOCALBIN) go install github.com/swaggo/swag/cmd/swag@$(SWAG_VERSION) .PHONY: widdershins widdershins: ## Install widdershins if necessary.