summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-23 03:45:33 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-23 03:45:33 +0200
commit4288f619215e3dda0b75113d78e4fb7ba219ed58 (patch)
treef7e3c8d3d710ae29bcb1313323a843ea1e375d89 /Makefile.am
parent6d526de26737a0f1e8d1cf422da364d29489022e (diff)
dbus: automatically generate and install introspection files
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index ffa9ad9a82..b3e9dfde81 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,7 @@ udevrulesdir=@udevrulesdir@
pkgsysconfdir=$(sysconfdir)/systemd
systemunitdir=$(pkgdatadir)/system
sessionunitdir=$(pkgdatadir)/session
+interfacedir=$(datadir)/dbus-1/interfaces
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
@@ -64,6 +65,19 @@ dist_dbuspolicy_DATA = \
dist_udevrules_DATA = \
src/99-systemd.rules
+interface_DATA = \
+ org.freedesktop.systemd1.Manager.xml \
+ org.freedesktop.systemd1.Job.xml \
+ org.freedesktop.systemd1.Unit.xml \
+ org.freedesktop.systemd1.Service.xml \
+ org.freedesktop.systemd1.Socket.xml \
+ org.freedesktop.systemd1.Target.xml \
+ org.freedesktop.systemd1.Device.xml \
+ org.freedesktop.systemd1.Mount.xml \
+ org.freedesktop.systemd1.Automount.xml \
+ org.freedesktop.systemd1.Snapshot.xml \
+ org.freedesktop.systemd1.Swap.xml
+
dist_systemunit_DATA = \
units/emergency.service \
units/getty.target \
@@ -426,6 +440,11 @@ CLEANFILES += \
man/systemd.special.html.in
endif
+org.freedesktop.systemd1.%.xml: systemd
+ $(AM_V_GEN)./systemd --introspect=${@:.xml=} > $@
+
+CLEANFILES += $(interface_DATA)
+
install-data-hook:
$(MKDIR_P) -m 0755 \
$(DESTDIR)$(systemunitdir) \