chiark / gitweb /
build-sys: fix out-of-tree build
[elogind.git] / Makefile.am
index 35bbc3a64ac1b142bf9b8bf9d783cc7d7b7bfa84..a615c3ff2e8e227b194d54a096f1a015b7cd404d 100644 (file)
@@ -509,7 +509,8 @@ MANPAGES = \
        man/hostname.5 \
        man/vconsole.conf.5 \
        man/locale.conf.5 \
-       man/os-release.5
+       man/os-release.5 \
+       man/modules-load.d.5
 
 MANPAGES_ALIAS = \
        man/reboot.8 \
@@ -1117,8 +1118,12 @@ CLEANFILES += \
        ${XML_IN_FILES:.xml.in=.html.in}
 endif
 
+DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
+
 org.freedesktop.systemd1.%.xml: systemd
-       $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
+       $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
+               $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
+               $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
 
 CLEANFILES += \
        $(dbusinterface_DATA)