mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05:00
make: Setup PATH to include path to go binary when running easyjson.
This commit is contained in:
@@ -2,7 +2,8 @@ all: build
|
||||
|
||||
GO := $(shell which go)
|
||||
GOPATH := $(shell "$(GO)" env GOPATH)
|
||||
GOFMT := "$(shell dirname "$(GO)")/gofmt"
|
||||
GODIR := $(shell dirname "$(GO)")
|
||||
GOFMT := "$(GODIR)/gofmt"
|
||||
GOOS ?= linux
|
||||
GOARCH ?= amd64
|
||||
GOVERSION := $(shell "$(GO)" env GOVERSION | sed "s|go||" )
|
||||
@@ -91,7 +92,7 @@ coverhtml: vet common
|
||||
$(GO) tool cover -html=cover.out -o coverage.html
|
||||
|
||||
%_easyjson.go: %.go $(GOPATHBIN)/bin/easyjson
|
||||
"$(GOPATHBIN)/easyjson" -all $*.go
|
||||
PATH="$(GODIR)":$(PATH) "$(GOPATHBIN)/easyjson" -all $*.go
|
||||
|
||||
common: \
|
||||
api_signaling_easyjson.go \
|
||||
|
||||
Reference in New Issue
Block a user