summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/Makefile.am10
-rw-r--r--ui/gtk/gtkpanel.xml.in.in (renamed from ui/gtk/gtkpanel.xml.in)2
2 files changed, 10 insertions, 2 deletions
diff --git a/ui/gtk/Makefile.am b/ui/gtk/Makefile.am
index e80cf96..edaf4ec 100644
--- a/ui/gtk/Makefile.am
+++ b/ui/gtk/Makefile.am
@@ -43,14 +43,22 @@ component_DATA = \
componentdir = $(pkgdatadir)/component
CLEANFILES = \
+ gtkpanel.xml \
*.pyc \
$(NULL)
EXTRA_DIST = \
ibus-ui-gtk.in \
- gtkpanel.xml.in \
+ gtkpanel.xml.in.in \
$(NULL)
+gtkpanel.xml: gtkpanel.xml.in
+ ( \
+ libexecdir=${libexecdir}; \
+ s=`cat $<`; \
+ eval "echo \"$${s}\""; \
+ ) > $@
+
test:
$(ENV) DBUS_DEBUG=true \
IBUS_PREFIX=@prefix@ \
diff --git a/ui/gtk/gtkpanel.xml.in b/ui/gtk/gtkpanel.xml.in.in
index 961dc5a..7e5d91d 100644
--- a/ui/gtk/gtkpanel.xml.in
+++ b/ui/gtk/gtkpanel.xml.in.in
@@ -3,7 +3,7 @@
<component>
<name>org.freedesktop.IBus.Panel</name>
<description>Gtk Panel Component</description>
- <exec>@prefix@/libexec/ibus-ui-gtk</exec>
+ <exec>${libexecdir}/ibus-ui-gtk</exec>
<version>@VERSION@</version>
<author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
<license>GPL</license>