From 49c4646f0d2beb676e6d60d971fe7789253c4f38 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 9 Jun 2009 15:35:25 -0500 Subject: Oh, stealing the methods used in PolicyKit for building these. I dislike calling sed directly, but the results are fantastic. --- data/Makefile.am | 13 ++++++++++--- data/indicator-session.service.in | 2 +- data/indicator-status.service.in | 2 +- data/indicator-users.service.in | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index de1d603..03e4cb8 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,5 +1,12 @@ dbus_servicesdir = $(DBUSSERVICEDIR) -dbus_services_DATA = indicator-status.service \ - indicator-users.service \ - indicator-session.service +service_in_files = indicator-status.service.in \ + indicator-users.service.in \ + indicator-session.service.in +dbus_services_DATA = $(service_in_files:.service.in=.service) + +$(dbus_services_DATA): $(service_in_files) Makefile + @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ + +EXTRA_DIST = $(service_in_files) + diff --git a/data/indicator-session.service.in b/data/indicator-session.service.in index 8d63285..790600a 100644 --- a/data/indicator-session.service.in +++ b/data/indicator-session.service.in @@ -1,3 +1,3 @@ [D-BUS Service] Name=com.ubuntu.indicator.session -Exec=@libexec@/indicator-session-service +Exec=@libexecdir@/indicator-session-service diff --git a/data/indicator-status.service.in b/data/indicator-status.service.in index c2b3b28..9fe92ad 100644 --- a/data/indicator-status.service.in +++ b/data/indicator-status.service.in @@ -1,3 +1,3 @@ [D-BUS Service] Name=com.ubuntu.indicator.status -Exec=@libexec@/indicator-status-service +Exec=@libexecdir@/indicator-status-service diff --git a/data/indicator-users.service.in b/data/indicator-users.service.in index 7ffbaa1..2843743 100644 --- a/data/indicator-users.service.in +++ b/data/indicator-users.service.in @@ -1,3 +1,3 @@ [D-BUS Service] Name=com.ubuntu.indicator.users -Exec=@libexec@/indicator-users-service +Exec=@libexecdir@/indicator-users-service -- cgit v1.2.3