mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-04 06:43:11 +02:00
make: Setup PATH to include path to go binary when running easyjson.
This commit is contained in:
parent
5fc886913c
commit
72965533b9
5
Makefile
5
Makefile
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue