chiark / gitweb /
build-sys: allow cross-compilation
[elogind.git] / Makefile.am
index 2e6b978b3809c93ab8798baf4fe111bede491bfe..694ec57a9b89d154b704be767514d6f379f6b28b 100644 (file)
@@ -506,7 +506,11 @@ MANPAGES = \
        man/pam_systemd.8 \
        man/systemd.conf.5 \
        man/tmpfiles.d.5 \
-       man/hostname.5
+       man/hostname.5 \
+       man/vconsole.conf.5 \
+       man/locale.conf.5 \
+       man/os-release.5 \
+       man/modules-load.d.5
 
 MANPAGES_ALIAS = \
        man/reboot.8 \
@@ -1114,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 introspect.awk | \
+               $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
 
 CLEANFILES += \
        $(dbusinterface_DATA)