summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)