diff --git a/Makefile b/Makefile index 8628a3fd41..394586831e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ include common.mk -CLI_DIR:=$(CURDIR)/../cli -ENGINE_DIR:=$(CURDIR)/../engine +CLI_DIR:=$(realpath $(CURDIR)/../cli) +ENGINE_DIR:=$(realpath $(CURDIR)/../engine) STATIC_VERSION:=$(shell static/gen-static-ver $(ENGINE_DIR) $(VERSION)) # Taken from: https://www.cmcrossroads.com/article/printing-value-makefile-variable diff --git a/deb/Makefile b/deb/Makefile index 89b65004b6..315f1f31ef 100644 --- a/deb/Makefile +++ b/deb/Makefile @@ -1,7 +1,7 @@ include ../common.mk -CLI_DIR:=$(CURDIR)/../../cli -ENGINE_DIR:=$(CURDIR)/../../engine +CLI_DIR:=$(realpath $(CURDIR)/../../cli) +ENGINE_DIR:=$(realpath $(CURDIR)/../../engine) GITCOMMIT?=$(shell cd $(CLI_DIR) && git rev-parse --short HEAD) STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION)) GO_BASE_IMAGE=golang diff --git a/image/Makefile b/image/Makefile index d660627877..65142ead94 100644 --- a/image/Makefile +++ b/image/Makefile @@ -1,7 +1,7 @@ include ../common.mk -ENGINE_DIR:=$(CURDIR)/../../engine -CLI_DIR:=$(CURDIR)/../../cli +CLI_DIR:=$(realpath $(CURDIR)/../../cli) +ENGINE_DIR:=$(realpath $(CURDIR)/../../engine) GO_BASE_IMAGE=golang ENGINE_GO_IMAGE=$(GO_BASE_IMAGE):$(GO_VERSION)-stretch STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION)) diff --git a/rpm/Makefile b/rpm/Makefile index 5963dafc76..0ca87e7afc 100644 --- a/rpm/Makefile +++ b/rpm/Makefile @@ -1,7 +1,7 @@ include ../common.mk -ENGINE_DIR:=$(CURDIR)/../../engine -CLI_DIR:=$(CURDIR)/../../cli +CLI_DIR:=$(realpath $(CURDIR)/../../cli) +ENGINE_DIR:=$(realpath $(CURDIR)/../../engine) GITCOMMIT=$(shell cd $(ENGINE_DIR) && git rev-parse --short HEAD) STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION)) GO_BASE_IMAGE=golang diff --git a/static/Makefile b/static/Makefile index 5192b08cbf..54416ad0c9 100644 --- a/static/Makefile +++ b/static/Makefile @@ -1,8 +1,7 @@ include ../common.mk -SHELL:=/bin/bash -ENGINE_DIR:=$(CURDIR)/../../engine -CLI_DIR:=$(CURDIR)/../../cli +CLI_DIR:=$(realpath $(CURDIR)/../../cli) +ENGINE_DIR:=$(realpath $(CURDIR)/../../engine) STATIC_VERSION:=$(shell ./gen-static-ver $(ENGINE_DIR) $(VERSION)) CHOWN=docker run --rm -v $(CURDIR):/v -w /v alpine chown HASH_CMD=docker run -v $(CURDIR):/sum -w /sum debian:jessie bash hash_files