diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-10-18 20:08:08 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:18 +0100 |
commit | ff5ea7b76a633d91c94d495c522a0bc5d86c184d (patch) | |
tree | 4d74980692fa3ef0c831a4d30fcddb4f17b5fc35 /include | |
parent | 365b906a3e1bda05af10f92451a6b6ae60f8b879 (diff) |
build: setup autogeneration of names header for the new API
The `include/ModemManager-names.h' autogenerated header includes the list of
Interface, Method, Signal and Property names defined in the DBus API.
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 03b6b934..6a9c564a 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,14 +1,21 @@ XSLTPROC = xsltproc --xinclude --nonet -XMLS = $(wildcard $(top_srcdir)/introspection/*.xml) +OLD_XMLS = $(wildcard $(top_srcdir)/introspection/*.xml) +NEW_XMLS = $(wildcard $(top_srcdir)/new/*.xml) includedir = @includedir@/mm include_HEADERS = \ + ModemManager-names.h \ ModemManager.h -ModemManager.h: $(XMLS) $(top_srcdir)/introspection/all.xml $(top_srcdir)/build-aux/header-generator.xsl - $(XSLTPROC) $(top_srcdir)/build-aux/header-generator.xsl $(top_srcdir)/introspection/all.xml > $@ +# NOTE: This is the header of the 0.5 API, which will get removed +ModemManager.h: $(OLD_XMLS) $(top_srcdir)/introspection/all.xml $(top_srcdir)/build-aux/header-generator.xsl + $(AM_V_GEN) $(XSLTPROC) $(top_srcdir)/build-aux/header-generator.xsl $(top_srcdir)/introspection/all.xml > $@ + +ModemManager-names.h: $(NEW_XMLS) $(top_srcdir)/new/all.xml $(top_srcdir)/build-aux/header-generator-new.xsl + $(AM_V_GEN) $(XSLTPROC) $(top_srcdir)/build-aux/header-generator-new.xsl $(top_srcdir)/new/all.xml > $@ CLEANFILES = \ - ModemManager.h
\ No newline at end of file + ModemManager-names.h \ + ModemManager.h |