From 144eefa2fbfae245da121c24832b659876a42cee Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 11 Apr 2022 10:22:05 +0200 Subject: [PATCH] make: Fix unnecessary building of easyjson. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d443e16..66fb597 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ endif hook: [ ! -d "$(CURDIR)/.git/hooks" ] || ln -sf "$(CURDIR)/scripts/pre-commit.hook" "$(CURDIR)/.git/hooks/pre-commit" -$(GOPATHBIN)/bin/easyjson: +$(GOPATHBIN)/easyjson: $(GO) get -u -d github.com/mailru/easyjson/... $(GO) install github.com/mailru/easyjson/... @@ -91,7 +91,7 @@ coverhtml: vet common sed -i "/_easyjson/d" cover.out && \ $(GO) tool cover -html=cover.out -o coverage.html -%_easyjson.go: %.go $(GOPATHBIN)/bin/easyjson +%_easyjson.go: %.go $(GOPATHBIN)/easyjson PATH="$(GODIR)":$(PATH) "$(GOPATHBIN)/easyjson" -all $*.go common: \