summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/Makefile b/cpp/Makefile
index f21258960a5..8e8e6ec0c89 100644
--- a/cpp/Makefile
+++ b/cpp/Makefile
@@ -7,8 +7,8 @@
#
# **********************************************************************
-lang_srcdir := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
-top_srcdir := $(abspath $(lang_srcdir)/../)
+top_srcdir := ..
+lang_srcdir := $(top_srcdir)/$(notdir $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
include $(top_srcdir)/config/Make.rules
include $(lang_srcdir)/config/Make.rules