aboutsummaryrefslogtreecommitdiff
path: root/libindicator/Makefile.am
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2011-01-13 15:00:23 -0600
committerSebastien Bacher <seb128@ubuntu.com>2011-01-13 15:00:23 -0600
commit3814e3d2d075044d7a77d0e0ccd0989f32f15010 (patch)
tree15888f72f279b0d368f8d1bc2b1f3988cccee1cc /libindicator/Makefile.am
parentc5c78aad9e7710a18640ea44c2a5af154b2943bc (diff)
parentb988044563fb4bec82d9d11d88a851f874f7b1ad (diff)
downloadlibayatana-indicator-3814e3d2d075044d7a77d0e0ccd0989f32f15010.tar.gz
libayatana-indicator-3814e3d2d075044d7a77d0e0ccd0989f32f15010.tar.bz2
libayatana-indicator-3814e3d2d075044d7a77d0e0ccd0989f32f15010.zip
releasing version 0.3.16-0ubuntu10.3.16-0ubuntu1
Diffstat (limited to 'libindicator/Makefile.am')
-rw-r--r--libindicator/Makefile.am28
1 files changed, 13 insertions, 15 deletions
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am
index b6239e6..5c70345 100644
--- a/libindicator/Makefile.am
+++ b/libindicator/Makefile.am
@@ -31,6 +31,8 @@ libindicatorinclude_HEADERS = \
libindicator_la_SOURCES = \
$(indicator_headers) \
dbus-shared.h \
+ gen-indicator-service.xml.h \
+ gen-indicator-service.xml.c \
indicator-object.c \
indicator-object-enum-types.c \
indicator-desktop-shortcuts.c \
@@ -49,7 +51,7 @@ libindicator_la_LIBADD = \
$(LIBINDICATOR_LIBS)
libindicator_la_LDFLAGS = \
- -version-info 1:0:0 \
+ -version-info 2:0:0 \
-no-undefined \
-export-symbols-regex "^[^_].*"
@@ -100,23 +102,19 @@ CLEANFILES += \
DBUS_SPECS = \
indicator-service.xml
-%-client.h: %.xml
- dbus-binding-tool \
- --prefix=_$(subst -,_,$(basename $(notdir $<)))_client \
- --mode=glib-client \
- --output=$@ \
- $<
+gen-%.xml.h: %.xml
+ @echo "Building $@ from $<"
+ @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $<)));" > $@
-%-server.h: %.xml
- dbus-binding-tool \
- --prefix=_$(subst -,_,$(basename $(notdir $<)))_server \
- --mode=glib-server \
- --output=$@ \
- $<
+gen-%.xml.c: %.xml
+ @echo "Building $@ from $<"
+ @echo "const char * _$(subst -,_,$(subst .,_,$(basename $<))) = " > $@
+ @sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
+ @echo ";" >> $@
BUILT_SOURCES += \
- $(DBUS_SPECS:.xml=-client.h) \
- $(DBUS_SPECS:.xml=-server.h)
+ gen-indicator-service.xml.h \
+ gen-indicator-service.xml.c
CLEANFILES += $(BUILT_SOURCES)