Simplify the computation

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2017-01-24 23:21:48 +01:00
parent c106f09f28
commit 84a1f213d6

View file

@ -44,8 +44,7 @@ CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\"
endif endif
ifeq (,$(findstring -DDBUSINTERFACEDIR,${CPPFLAGS})) ifeq (,$(findstring -DDBUSINTERFACEDIR,${CPPFLAGS}))
ifneq ($(WITH_LOCAL_DBUS_XML),0) ifneq ($(WITH_LOCAL_DBUS_XML),0)
CDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) CPPFLAGS += -DDBUSINTERFACEDIR=\"$(abspath data)\"
CPPFLAGS += -DDBUSINTERFACEDIR=\"$(CDIR)/data\"
else else
CPPFLAGS += -DDBUSINTERFACEDIR=\"${DBUSINTERFACEDIR}\" CPPFLAGS += -DDBUSINTERFACEDIR=\"${DBUSINTERFACEDIR}\"
endif endif