aboutsummaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2016-07-18 18:09:45 +0200
committerTed Gould <ted@gould.cx>2016-07-18 18:09:45 +0200
commit475e5e014a2271d9db43bc3acf430a465b87f99e (patch)
tree6e41d0eb1472a2922a45692c1058715958d51b2e /data/Makefile.am
parenteb2d435fb70c6036e9005ccbd84927f852c05f48 (diff)
downloadayatana-indicator-bluetooth-475e5e014a2271d9db43bc3acf430a465b87f99e.tar.gz
ayatana-indicator-bluetooth-475e5e014a2271d9db43bc3acf430a465b87f99e.tar.bz2
ayatana-indicator-bluetooth-475e5e014a2271d9db43bc3acf430a465b87f99e.zip
Adding an systemd user session unit
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 81f4d5e..9dd100b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -8,6 +8,21 @@ SUBDIRS = upstart
indicatorsdir = $(datadir)/unity/indicators
dist_indicators_DATA = com.canonical.indicator.bluetooth
+# the systemd unit file
+systemddir = $(SYSTEMD_USERDIR)
+systemd_DATA = indicator-bluetooth.service
+systemd_in = $(systemd_DATA:.service=.service.in)
+$(systemd_DATA): $(systemd_in)
+ $(AM_V_GEN) $(SED) -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+BUILT_SOURCES += $(systemd_DATA)
+EXTRA_DIST += $(systemd_in)
+CLEANFILES += $(systemd_DATA)
+
+# the systemd upstart override
+upstart_overridedir = $(datadir)/upstart/systemd-session/upstart
+upstart_override_DATA = indicator-bluetooth.override
+EXTRA_DIST += $(upstart_override_DATA)
+
# the upstart job file
upstart_jobsdir = $(datadir)/upstart/sessions
upstart_jobs_DATA = indicator-bluetooth.conf