diff options
author | Ted Gould <ted@canonical.com> | 2009-06-09 15:35:25 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-06-09 15:35:25 -0500 |
commit | 49c4646f0d2beb676e6d60d971fe7789253c4f38 (patch) | |
tree | b7ee4d07012a4e801e999cfcd90e760029348b60 /data/Makefile.am | |
parent | 45361f6e3c6061d4630a630c8b2b48861e4cac57 (diff) | |
download | ayatana-indicator-session-49c4646f0d2beb676e6d60d971fe7789253c4f38.tar.gz ayatana-indicator-session-49c4646f0d2beb676e6d60d971fe7789253c4f38.tar.bz2 ayatana-indicator-session-49c4646f0d2beb676e6d60d971fe7789253c4f38.zip |
Oh, stealing the methods used in PolicyKit for building these. I dislike calling sed directly, but the results are fantastic.
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 13 |
1 files changed, 10 insertions, 3 deletions
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) + |