summaryrefslogtreecommitdiff
path: root/exports/common.mk
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-02-09 17:11:33 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-02-09 17:11:33 +0100
commitb9a0d73fd20d89e2368d65d7635c60e71f831b13 (patch)
tree29d6a93263f6f1063b5dcc26c93d2ecd51c3e943 /exports/common.mk
parente0228bca0f8cc2133a4efbbc5ed62bf01fda3783 (diff)
Small Makefile improvement
Diffstat (limited to 'exports/common.mk')
-rw-r--r--exports/common.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/exports/common.mk b/exports/common.mk
index bc5a3d6..1059e63 100644
--- a/exports/common.mk
+++ b/exports/common.mk
@@ -23,10 +23,8 @@ LIB_NAME ?= eduvpn_common
# Library file name
LIB_FILE ?= $(LIB_PREFIX)$(LIB_NAME)$(LIB_SUFFIX)
-# Get relative exports/ directory when included from a wrapper
-EXPORTS_PATH = $(dir $(lastword $(MAKEFILE_LIST)))
-# Remove trailing slash
-EXPORTS_PATH := $(EXPORTS_PATH:/=)
+# Get relative exports/ directory when included from a wrapper, without trailing slash
+override EXPORTS_PATH = $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
EXPORTS_LIB_PATH ?= $(EXPORTS_PATH)/lib
EXPORTS_LIB_SUBFOLDER_PATH ?= $(EXPORTS_LIB_PATH)/$(GOOS)/$(GOARCH)