Compute PWD correctly

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2017-01-24 23:19:07 +01:00
parent 4ee323a89a
commit c106f09f28

View File

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