зеркало из https://github.com/golang/dep.git
Makefile: use simple variables
There is no reason to run go env at variable expansion time, run it at initialization time instead. Also remove extra quoting for SHELL, as those are kept verbatim in the $(shell) calls, which can lead to the attempted execution of a "/bin/bash" process depending on the system, leading to errors like: make: "/bin/bash": Command not found
This commit is contained in:
Родитель
7d50595713
Коммит
5a2d42f813
10
Makefile
10
Makefile
|
@ -1,8 +1,8 @@
|
|||
SHELL="/bin/bash"
|
||||
PLATFORM=$(shell go env GOOS)
|
||||
ARCH=$(shell go env GOARCH)
|
||||
GOPATH=$(shell go env GOPATH)
|
||||
GOBIN=$(GOPATH)/bin
|
||||
SHELL := /bin/bash
|
||||
PLATFORM := $(shell go env GOOS)
|
||||
ARCH := $(shell go env GOARCH)
|
||||
GOPATH := $(shell go env GOPATH)
|
||||
GOBIN := $(GOPATH)/bin
|
||||
|
||||
default: build validate test
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче