Commit 84a1f213 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Simplify the computation

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent c106f09f
...@@ -44,8 +44,7 @@ CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\" ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment