mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Fix Docker Machine build GOPATH if no default GOPATH in the env. (#2125)
This commit is contained in:
parent
46207af68a
commit
46c551e977
@ -3,9 +3,15 @@ SHELL := /bin/bash
|
||||
BUILD_ID := $(shell head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')
|
||||
REPO_ROOT ?= $(shell realpath ../../../../)
|
||||
GOCA_PATH ?= ${REPO_ROOT}/src/oca/go
|
||||
GOPATH := $(GOPATH):${REPO_ROOT}/src/docker_machine
|
||||
GOPATH_REPO ?= ${REPO_ROOT}/src/docker_machine
|
||||
USE_LOCAL_GOCA ?= yes
|
||||
|
||||
ifeq ($(GOPATH),)
|
||||
GOPATH := $(GOPATH_REPO)
|
||||
else
|
||||
GOPATH := $(GOPATH):$(GOPATH_REPO)
|
||||
endif
|
||||
|
||||
.PHONY: clean build
|
||||
|
||||
build: bin/docker-machine-driver-opennebula
|
||||
|
Loading…
x
Reference in New Issue
Block a user