diff options
author | Ted Gould <ted@canonical.com> | 2009-10-28 16:58:19 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-28 16:58:19 -0500 |
commit | 606b4939df9845c82d92029abfe8403eb891a26b (patch) | |
tree | 3b92f801142f28cdf5c52b70f77177cbcb9ab521 /libindicator/Makefile.am | |
parent | 15995b7acd5a51c03298c9c671dd82718921ad4e (diff) | |
download | libayatana-indicator-606b4939df9845c82d92029abfe8403eb891a26b.tar.gz libayatana-indicator-606b4939df9845c82d92029abfe8403eb891a26b.tar.bz2 libayatana-indicator-606b4939df9845c82d92029abfe8403eb891a26b.zip |
Building ourselves a little dbus spec
Diffstat (limited to 'libindicator/Makefile.am')
-rw-r--r-- | libindicator/Makefile.am | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am index db45f3c..6061ad8 100644 --- a/libindicator/Makefile.am +++ b/libindicator/Makefile.am @@ -1,3 +1,5 @@ +BUILT_SOURCES = +CLEANFILES = EXTRA_DIST = \ indicator.pc.in @@ -27,3 +29,31 @@ libindicator_la_LIBADD = \ pkgconfig_DATA = indicator.pc pkgconfigdir = $(libdir)/pkgconfig +################################## +# DBus Specs +################################## + +DBUS_SPECS = \ + indicator-service.xml + +%-client.h: %.xml + dbus-binding-tool \ + --prefix=_$(subst -,_,$(<:.xml=))_client \ + --mode=glib-client \ + --output=$@ \ + $< + +%-server.h: %.xml + dbus-binding-tool \ + --prefix=_$(subst -,_,$(<:.xml=))_server \ + --mode=glib-server \ + --output=$@ \ + $< + +BUILT_SOURCES += \ + $(DBUS_SPECS:.xml=-client.h) \ + $(DBUS_SPECS:.xml=-server.h) + +CLEANFILES += $(BUILT_SOURCES) + +EXTRA_DIST += $(DBUS_SPECS) |