summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
author <rob.taylor@collabora.co.uk>2006-01-19 09:08:12 +0000
committer <rob.taylor@collabora.co.uk>2006-01-19 09:08:12 +0000
commit7bf0ee9360f8e9fcde6e87d2c75165896ca9649e (patch)
treeded6ea67ab5d6e92ce613f765d733be85225816e /data
parentb264d69eb51b85fabe65dada4661e41b87ee9691 (diff)
make .service file generation actually work
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am8
-rw-r--r--data/org.freedesktop.Telepathy.ConnectionManager.gabble.service.in (renamed from data/org.freedesktop.Telepathy.ConnectionManager.gabble.in)2
2 files changed, 8 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 204205ae9..6dd1d6f86 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,2 +1,8 @@
+# Dbus service file
servicedir = $(DBUS_SERVICES_DIR)
-service_DATA = org.freedesktop.Telepathy.ConnectionManager.gabble
+service_in_files = org.freedesktop.Telepathy.ConnectionManager.gabble.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+# Rule to make the service file with bindir expanded
+$(service_DATA): $(service_in_files) Makefile
+ @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
diff --git a/data/org.freedesktop.Telepathy.ConnectionManager.gabble.in b/data/org.freedesktop.Telepathy.ConnectionManager.gabble.service.in
index 5d57db2a3..1988259cc 100644
--- a/data/org.freedesktop.Telepathy.ConnectionManager.gabble.in
+++ b/data/org.freedesktop.Telepathy.ConnectionManager.gabble.service.in
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.freedesktop.Telepathy.ConnectionManager.gabble
-Exec=@EXEC_DIR@/telepathy-gabble
+Exec=@bindir@/telepathy-gabble