chiark / gitweb /
tests: build the right tests
[elogind.git] / Makefile.am
index f5c43da5e2311a3b10c5ba8d2a65b4eb52d2538e..b255b7a1f6881e0e7a15fddaa5ba4c08f6b4bb0a 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 \
@@ -281,7 +288,7 @@ test_engine_LDADD = $(systemd_LDADD)
 
 test_job_type_SOURCES = \
        $(COMMON_SOURCES) \
-       src/test-engine.c
+       src/test-job-type.c
 
 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
 test_job_type_LDADD = $(systemd_LDADD)
@@ -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