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:
Yann Hodique 2018-05-16 11:17:45 -07:00
Родитель 7d50595713
Коммит 5a2d42f813
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

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