chiark / gitweb /
update fixme
[elogind.git] / Makefile.am
index f5c43da5e2311a3b10c5ba8d2a65b4eb52d2538e..2ab7995025245aca356f3b886206b7bc6bd52691 100644 (file)
@@ -45,7 +45,7 @@ AM_CPPFLAGS = \
        -I $(top_srcdir)/src
 
 rootbin_PROGRAMS = \
-       systemd
+       systemd \
        systemctl
 
 if HAVE_GTK
@@ -159,6 +159,13 @@ dist_systemunit_DATA += \
        units/fedora/sysinit.service
 endif
 
+if TARGET_SUSE
+dist_systemunit_DATA += \
+       units/suse/halt.service \
+       units/suse/poweroff.service \
+       units/suse/reboot.service
+endif
+
 if TARGET_GENTOO
 dist_systemunit_DATA += \
        units/gentoo/halt.service \
@@ -361,11 +368,10 @@ systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
 
 SED_PROCESS = \
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
-       $(SED)  -e 's,@libexecdir\@,$(libexecdir),g' \
-               -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
+       $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
                -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
                -e 's,@SPECIAL_DBUS_SERVICE\@,$(SPECIAL_DBUS_SERVICE),g' \
-               -e 's,@SYSTEMCTL\@,$(bindir)/systemctl,g' \
+               -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
                < $< > $@
 
 units/%: units/%.in Makefile