Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 529af9b

Browse files
committed
Makefile: realpath engine-, cli-dir
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 2929c9b) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: c621124f3356bc375d6857822712646f21547d21 Component: packaging
1 parent b1daa91 commit 529af9b

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

components/packaging/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include common.mk
22

3-
CLI_DIR:=$(CURDIR)/../cli
4-
ENGINE_DIR:=$(CURDIR)/../engine
3+
CLI_DIR:=$(realpath $(CURDIR)/../cli)
4+
ENGINE_DIR:=$(realpath $(CURDIR)/../engine)
55
STATIC_VERSION:=$(shell static/gen-static-ver $(ENGINE_DIR) $(VERSION))
66

77
# Taken from: https://www.cmcrossroads.com/article/printing-value-makefile-variable

components/packaging/deb/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include ../common.mk
22

3-
CLI_DIR:=$(CURDIR)/../../cli
4-
ENGINE_DIR:=$(CURDIR)/../../engine
3+
CLI_DIR:=$(realpath $(CURDIR)/../../cli)
4+
ENGINE_DIR:=$(realpath $(CURDIR)/../../engine)
55
GITCOMMIT?=$(shell cd $(CLI_DIR) && git rev-parse --short HEAD)
66
STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION))
77
GO_BASE_IMAGE=golang

components/packaging/image/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include ../common.mk
22

3-
ENGINE_DIR:=$(CURDIR)/../../engine
4-
CLI_DIR:=$(CURDIR)/../../cli
3+
CLI_DIR:=$(realpath $(CURDIR)/../../cli)
4+
ENGINE_DIR:=$(realpath $(CURDIR)/../../engine)
55
GO_BASE_IMAGE=golang
66
ENGINE_GO_IMAGE=$(GO_BASE_IMAGE):$(GO_VERSION)-stretch
77
STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION))

components/packaging/rpm/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include ../common.mk
22

3-
ENGINE_DIR:=$(CURDIR)/../../engine
4-
CLI_DIR:=$(CURDIR)/../../cli
3+
CLI_DIR:=$(realpath $(CURDIR)/../../cli)
4+
ENGINE_DIR:=$(realpath $(CURDIR)/../../engine)
55
GITCOMMIT=$(shell cd $(ENGINE_DIR) && git rev-parse --short HEAD)
66
STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION))
77
GO_BASE_IMAGE=golang

components/packaging/static/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
include ../common.mk
22

3-
SHELL:=/bin/bash
4-
ENGINE_DIR:=$(CURDIR)/../../engine
5-
CLI_DIR:=$(CURDIR)/../../cli
3+
CLI_DIR:=$(realpath $(CURDIR)/../../cli)
4+
ENGINE_DIR:=$(realpath $(CURDIR)/../../engine)
65
STATIC_VERSION:=$(shell ./gen-static-ver $(ENGINE_DIR) $(VERSION))
76
CHOWN=docker run --rm -v $(CURDIR):/v -w /v alpine chown
87
HASH_CMD=docker run -v $(CURDIR):/sum -w /sum debian:jessie bash hash_files

0 commit comments

Comments
 (0)