| OLD | NEW |
| 1 XSLTPROC = xsltproc --xinclude --nonet |
| 2 |
| 3 XMLS = $(wildcard introspection/mm-*.xml) |
| 4 |
| 1 if WITH_DOCS | 5 if WITH_DOCS |
| 2 | 6 |
| 3 all: | 7 all: |
| 4 | 8 |
| 5 XSLTPROC = xsltproc --xinclude --nonet | |
| 6 | |
| 7 XMLS = $(wildcard introspection/mm-*.xml) | |
| 8 # Figure out if we need ASYNC_INTROSPECT and add it later | 9 # Figure out if we need ASYNC_INTROSPECT and add it later |
| 9 | 10 |
| 10 GENERATED_FILES = \ | 11 GENERATED_FILES = \ |
| 11 docs/spec.html | 12 docs/spec.html |
| 12 | 13 |
| 13 docs/spec.html: $(XMLS) introspection/all.xml doc-generator.xsl | 14 docs/spec.html: $(XMLS) introspection/all.xml doc-generator.xsl |
| 14 @install -d docs | 15 @install -d docs |
| 15 $(XSLTPROC) doc-generator.xsl introspection/all.xml > $@ | 16 $(XSLTPROC) doc-generator.xsl introspection/all.xml > $@ |
| 16 | 17 |
| 17 all: $(GENERATED_FILES) | 18 all: $(GENERATED_FILES) |
| 18 | 19 |
| 19 CLEANFILES = $(GENERATED_FILES) | 20 CLEANFILES = $(GENERATED_FILES) |
| 20 endif | 21 endif |
| 21 | 22 |
| 22 SUBDIRS = marshallers src plugins introspection test | 23 SUBDIRS = marshallers src plugins introspection test |
| 23 | 24 |
| 24 dbusservicedir = $(DBUS_SYS_DIR) | 25 dbusservicedir = $(DBUS_SYS_DIR) |
| 25 dbusservice_DATA = org.freedesktop.ModemManager.conf | 26 dbusservice_DATA = org.freedesktop.ModemManager.conf |
| 26 | 27 |
| 27 dbusactivationdir = $(datadir)/dbus-1/system-services | 28 dbusactivationdir = $(datadir)/dbus-1/system-services |
| 28 dbusactivation_in_files = org.freedesktop.ModemManager.service.in | 29 dbusactivation_in_files = org.freedesktop.ModemManager.service.in |
| 29 dbusactivation_DATA = $(dbusactivation_in_files:.service.in=.service) | 30 dbusactivation_DATA = $(dbusactivation_in_files:.service.in=.service) |
| 30 | 31 |
| 32 includedir = @includedir@/mm |
| 33 |
| 34 include_HEADERS = include/mm-modem.h |
| 35 |
| 36 include/mm-modem.h: $(XMLS) introspection/all.xml header-generator.xsl |
| 37 @install -d include |
| 38 $(XSLTPROC) header-generator.xsl introspection/all.xml > $@ |
| 39 |
| 31 %service: %service.in | 40 %service: %service.in |
| 32 $(edit) $< >$@ | 41 $(edit) $< >$@ |
| 33 | 42 |
| 34 edit = @sed \ | 43 edit = @sed \ |
| 35 -e 's|@sbindir[@]|$(sbindir)|g' \ | 44 -e 's|@sbindir[@]|$(sbindir)|g' \ |
| 36 -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ | 45 -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ |
| 37 -e 's|@localstatedir[@]|$(localstatedir)|g' \ | 46 -e 's|@localstatedir[@]|$(localstatedir)|g' \ |
| 38 -e 's|@libexecdir[@]|$(libexecdir)|g' | 47 -e 's|@libexecdir[@]|$(libexecdir)|g' |
| 39 | 48 |
| 40 DISTCHECK_CONFIGURE_FLAGS = --with-udev-base-dir=$dc_install_base | 49 DISTCHECK_CONFIGURE_FLAGS = --with-udev-base-dir=$dc_install_base |
| 41 | 50 |
| 42 DISTCLEANFILES = \ | 51 DISTCLEANFILES = \ |
| 43 $(dbusactivation_DATA) | 52 $(dbusactivation_DATA) |
| 44 | 53 |
| 45 | 54 |
| 46 EXTRA_DIST = \ | 55 EXTRA_DIST = \ |
| 47 doc-generator.xsl \ | 56 doc-generator.xsl \ |
| 48 $(dbusservice_DATA) \ | 57 $(dbusservice_DATA) \ |
| 49 $(dbusactivation_in_files) | 58 $(dbusactivation_in_files) |
| 50 | 59 |
| 51 ACLOCAL_AMFLAGS = -I m4 | 60 ACLOCAL_AMFLAGS = -I m4 |
| OLD | NEW |