From 84a1f213d6e518c8fa6874470a1da7fb8b4e5f1d Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 24 Jan 2017 23:21:48 +0100 Subject: [PATCH] Simplify the computation Signed-off-by: Sebastian Ramacher --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ecad4ce..7e891f0 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,7 @@ CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\" endif ifeq (,$(findstring -DDBUSINTERFACEDIR,${CPPFLAGS})) ifneq ($(WITH_LOCAL_DBUS_XML),0) -CDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -CPPFLAGS += -DDBUSINTERFACEDIR=\"$(CDIR)/data\" +CPPFLAGS += -DDBUSINTERFACEDIR=\"$(abspath data)\" else CPPFLAGS += -DDBUSINTERFACEDIR=\"${DBUSINTERFACEDIR}\" endif