--- trunk/qemu-networking/Makefile 2013/10/14 09:18:38 2204 +++ trunk/qemu-networking/Makefile 2013/10/14 09:19:15 2205 @@ -3,6 +3,7 @@ VERSION = $(shell cat VERSION) +PKGCONFIG = pkg-config INSTALL = install RM = rm SED = sed @@ -11,9 +12,9 @@ confddir = /etc/conf.d datadir = /usr/share docdir = $(datadir)/doc/qemu-networking-$(VERSION) -systemddir = /usr/lib/systemd -systemdhelperdir = $(systemddir) -systemdunitdir = $(systemddir)/system +systemddir = $(shell $(PKGCONFIG) pkg-config systemd --variable=systemdutildir) +systemdhelperdir = $(shell $(PKGCONFIG) systemd --variable=systemdutildir) +systemdunitdir = $(shell $(PKGCONFIG) systemd --variable=systemdsystemunitdir) all: qemu-networking qemu-networking.service