2020-12-17 01:17:49 +03:00
# This file used to declare a separate libtool static library.
# Now that the daemon and binary are the same thing, we have
# Makefile-rpm-ostree.am reuse these variables.
2015-04-28 04:22:58 +03:00
dbus_built_sources = rpm-ostreed-generated.h rpm-ostreed-generated.c
2017-03-25 00:57:21 +03:00
# TODO: Add --c-generate-autocleanup=all once we depend on GLib 2.50+
# https://github.com/projectatomic/rpm-ostree/pull/705
2015-04-28 04:22:58 +03:00
rpm-ostreed-generated.h: rpm-ostreed-generated.c
2017-03-25 00:57:21 +03:00
rpm-ostreed-generated.c: Makefile $(top_srcdir)/src/daemon/org.projectatomic.rpmostree1.xml
2018-06-04 16:11:24 +03:00
$(AM_V_GEN) gdbus-codegen \
2015-04-28 04:22:58 +03:00
--interface-prefix org.projectatomic.rpmostree1 \
--c-namespace RPMOSTree \
--c-generate-object-manager \
--generate-c-code rpm-ostreed-generated \
2015-07-15 23:39:25 +03:00
--generate-docbook rpm-ostreed-generated \
2015-04-28 04:22:58 +03:00
$(top_srcdir)/src/daemon/org.projectatomic.rpmostree1.xml \
$(NULL)
BUILT_SOURCES += $(dbus_built_sources)
2016-03-10 22:36:44 +03:00
CLEANFILES += rpm-ostreed-generated-org.projectatomic.rpmostree1.OS.xml \
2017-03-25 17:21:33 +03:00
rpm-ostreed-generated-org.projectatomic.rpmostree1.OSExperimental.xml \
2016-03-10 22:36:44 +03:00
rpm-ostreed-generated-org.projectatomic.rpmostree1.Sysroot.xml \
rpm-ostreed-generated-org.projectatomic.rpmostree1.Transaction.xml \
$(NULL)
2015-04-28 04:22:58 +03:00
2020-12-17 01:17:49 +03:00
librpmostreed_sources = \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-types.h \
src/daemon/rpmostreed-daemon.h \
2020-12-21 19:08:51 +03:00
src/daemon/rpmostreed-daemon.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-utils.h \
2020-12-21 19:08:51 +03:00
src/daemon/rpmostreed-utils.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-sysroot.h \
2020-12-21 19:08:51 +03:00
src/daemon/rpmostreed-sysroot.cxx \
2017-03-27 21:12:05 +03:00
src/daemon/rpmostree-sysroot-core.h \
2020-12-11 23:14:56 +03:00
src/daemon/rpmostree-sysroot-core.cxx \
2015-02-11 21:06:43 +03:00
src/daemon/rpmostree-sysroot-upgrader.h \
2020-12-11 23:07:43 +03:00
src/daemon/rpmostree-sysroot-upgrader.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-errors.h \
2020-12-21 19:08:51 +03:00
src/daemon/rpmostreed-errors.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-deployment-utils.h \
2020-12-11 23:23:11 +03:00
src/daemon/rpmostreed-deployment-utils.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-transaction.h \
2020-12-08 20:41:59 +03:00
src/daemon/rpmostreed-transaction.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-transaction-types.h \
2020-12-12 01:27:25 +03:00
src/daemon/rpmostreed-transaction-types.cxx \
2021-01-12 02:18:17 +03:00
src/daemon/rpmostreed-transaction-applylive.cxx \
2015-06-10 05:27:39 +03:00
src/daemon/rpmostree-package-variants.h \
2020-12-21 19:08:51 +03:00
src/daemon/rpmostree-package-variants.cxx \
2015-08-24 22:44:40 +03:00
src/daemon/rpmostreed-os.h \
2020-12-11 23:26:45 +03:00
src/daemon/rpmostreed-os.cxx \
2017-03-23 04:44:09 +03:00
src/daemon/rpmostreed-os-experimental.h \
2020-12-21 19:08:51 +03:00
src/daemon/rpmostreed-os-experimental.cxx \
2015-04-28 04:22:58 +03:00
$(NULL)
dbusconf_DATA = $(srcdir)/src/daemon/org.projectatomic.rpmostree1.conf
2019-09-16 18:51:13 +03:00
dbusconfdir = $(datadir)/dbus-1/system.d
2015-04-28 04:22:58 +03:00
2017-12-15 20:01:46 +03:00
systemdunit_service_in_files = \
$(srcdir)/src/daemon/rpm-ostreed.service.in \
$(srcdir)/src/daemon/rpm-ostreed-automatic.service.in \
2018-11-30 01:19:38 +03:00
$(srcdir)/src/daemon/rpm-ostree-bootstatus.service.in \
2021-02-25 14:14:36 +03:00
$(srcdir)/src/daemon/rpm-ostree-countme.service.in \
2017-12-15 20:01:46 +03:00
$(NULL)
systemdunit_service_files = $(systemdunit_service_in_files:.service.in=.service)
2021-02-25 14:14:36 +03:00
systemdunit_timer_files = \
$(srcdir)/src/daemon/rpm-ostreed-automatic.timer \
$(srcdir)/src/daemon/rpm-ostree-countme.timer \
$(NULL)
2017-12-15 20:01:46 +03:00
systemdunit_DATA = \
$(systemdunit_service_files) \
$(systemdunit_timer_files) \
$(NULL)
2015-04-28 04:22:58 +03:00
systemdunitdir = $(prefix)/lib/systemd/system/
2017-01-17 21:29:48 +03:00
if BUILDOPT_ASAN
daemon_asan_options = -e s,@SYSTEMD_ENVIRON\@,Environment=ASAN_OPTIONS=detect_leaks=false,
else
daemon_asan_options = -e /@SYSTEMD_ENVIRON\@/d
endif
2017-12-15 20:01:46 +03:00
$(systemdunit_service_files): Makefile
2017-01-17 21:29:48 +03:00
$(SED_SUBST) $(daemon_asan_options) $@.in > $@
2015-04-28 04:22:58 +03:00
2021-02-25 14:14:36 +03:00
systemdsysusers_DATA = $(srcdir)/src/daemon/rpm-ostree.conf
systemdsysusersdir = $(prefix)/lib/sysusers.d
2016-05-27 21:46:46 +03:00
# We keep this stub script around to have SELinux labeling work,
# plus some backwards compatibility.
libexec_SCRIPTS = rpm-ostreed
rpm-ostreed: $(srcdir)/src/daemon/rpm-ostreed-stub.sh.in Makefile
$(SED_SUBST) $< > $@.tmp && mv $@.tmp $@
2016-10-19 21:24:40 +03:00
# We don't yet rename the DBus related items
2015-04-28 04:22:58 +03:00
service_in_files = $(srcdir)/src/daemon/org.projectatomic.rpmostree1.service.in
service_DATA = $(service_in_files:.service.in=.service)
2020-12-22 23:38:29 +03:00
servicedir = $(datadir)/dbus-1/system-services
2016-05-27 21:46:46 +03:00
%.service: %.service.in Makefile
$(SED_SUBST) $@.in > $@.tmp && mv $@.tmp $@
2015-04-28 04:22:58 +03:00
2017-06-09 13:52:01 +03:00
polkit_policy_DATA = $(srcdir)/src/daemon/org.projectatomic.rpmostree1.policy
polkit_policydir = $(datadir)/polkit-1/actions
2017-06-23 11:35:46 +03:00
dbus_introspection_DATA = src/daemon/org.projectatomic.rpmostree1.xml
dbus_introspectiondir = $(datadir)/dbus-1/interfaces
2017-12-15 20:01:46 +03:00
sysconf_DATA += $(srcdir)/src/daemon/rpm-ostreed.conf
2015-04-28 04:22:58 +03:00
EXTRA_DIST += \
2017-06-23 11:35:46 +03:00
$(dbus_introspection_DATA) \
2015-04-28 04:22:58 +03:00
$(dbusservice_DATA) \
2017-06-09 13:52:01 +03:00
$(polkit_policy_DATA) \
2017-12-15 20:01:46 +03:00
$(sysconf_DATA) \
2015-04-28 04:22:58 +03:00
$(service_in_files) \
2017-12-15 20:01:46 +03:00
$(systemdunit_service_in_files) \
$(systemdunit_timer_files) \
2021-02-25 14:14:36 +03:00
$(systemdsysusers_conf_files) \
2015-04-28 04:22:58 +03:00
$(NULL)
CLEANFILES += \
$(service_DATA) \
2017-12-15 20:01:46 +03:00
$(systemdunit_service_files) \
2015-04-28 04:22:58 +03:00
$(NULL)