Index: Makefile.am |
diff --git a/Makefile.am b/Makefile.am |
index 915f82e5f7d621bd15d282601e3ba8bfbed5ffc8..acdf12c65f60154a7c7a4ec970457f0a345cc138 100644 |
--- a/Makefile.am |
+++ b/Makefile.am |
@@ -1,10 +1,11 @@ |
+XSLTPROC = xsltproc --xinclude --nonet |
+ |
+XMLS = $(wildcard introspection/mm-*.xml) |
+ |
if WITH_DOCS |
all: |
-XSLTPROC = xsltproc --xinclude --nonet |
- |
-XMLS = $(wildcard introspection/mm-*.xml) |
# Figure out if we need ASYNC_INTROSPECT and add it later |
GENERATED_FILES = \ |
@@ -28,6 +29,14 @@ dbusactivationdir = $(datadir)/dbus-1/system-services |
dbusactivation_in_files = org.freedesktop.ModemManager.service.in |
dbusactivation_DATA = $(dbusactivation_in_files:.service.in=.service) |
+includedir = @includedir@/mm |
+ |
+include_HEADERS = include/mm-modem.h |
+ |
+include/mm-modem.h: $(XMLS) introspection/all.xml header-generator.xsl |
+ @install -d include |
+ $(XSLTPROC) header-generator.xsl introspection/all.xml > $@ |
+ |
%service: %service.in |
$(edit) $< >$@ |