make: Fix unnecessary building of easyjson.

This commit is contained in:
Joachim Bauch 2022-04-11 10:22:05 +02:00
parent 156a8a2086
commit 144eefa2fb
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -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: \