aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-07-23 05:34:50 +0800
committerkremlin <ian@kremlin.cc>2014-07-23 05:34:50 +0800
commiteb9f042efe794c8fcc0bdec0aa59b31d17c2837e (patch)
treea9209fa4310db238687cfd82f8de0bc37863f4b7 /Makefile
parentfd432a8943d6f70cc1cdcf8d750c9d42d09ca4ad (diff)
downloadsystembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.tar
systembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.tar.gz
systembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.tar.bz2
systembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.tar.lz
systembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.tar.xz
systembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.tar.zst
systembsd-eb9f042efe794c8fcc0bdec0aa59b31d17c2837e.zip
modify makefile and script to work with previous commit
last commit created discrepencies in makefile and gen-gdbus-interfaces.sh, fix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b802403..8ad85c6 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,16 @@ GLIBOF=`pkg-config --cflags glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0`
SANITY=-Wno-unused-variable -Wno-unused-parameter # -Wno-comment
PREFIX=/usr/local
+LIBDIR=$(PREFIX)/lib
+OUR_LIBDIR=$(LIBDIR)/systemd-compat
SYSCONFDIR=/etc
+
SRCDIR=src
+CONFDIR=conf
+POLICYDIR=$(CONFDIR)/sysbus-policy
+ISPECTDIR=$(CONFDIR)/introspect-xml
+SERVICEFDIR=$(CONFDIR)/service-files
+
INTFDIR=$(SRCDIR)/interfaces
DBUS_POLICYDIR=$(SYSCONFDIR)/dbus-1/system.d
@@ -67,10 +75,10 @@ _generate_genfiles:
$(INVOKE_GENFILE_SCRIPT) logind
_install_conf:
- cp conf/*-dbus.conf $(DBUS_POLICYDIR)/
- cp conf/org.freedesktop.*.service $(DBUS_CONFIGDIR)/
- cp conf/systemd_compat.conf $(SYSCONFDIR)/
+ cp $(POLICYDIR)/*-dbus.conf $(DBUS_POLICYDIR)/
+ cp $(SERVICEFDIR)/*.service $(DBUS_CONFIGDIR)/
+ cp $(CONFDIR)/systemd_compat.conf $(SYSCONFDIR)/
_install_interface_binaries: $(LINKHN)
- mkdir $(PREFIX)/bin/systemd-compat
- cp bin/systemd-* $(PREFIX)/bin/systemd-compat/
+ mkdir -p $(OUR_LIBDIR)
+ cp bin/systemd-* $(OUR_LIBDIR)/