aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am20
-rw-r--r--data/indicator-power.service.in3
2 files changed, 21 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 3143881..c2ce65d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,10 +1,26 @@
+BUILT_SOURCES=
+CLEANFILES=
+EXTRA_DIST=
#
# the indicator bus file
#
indicatorsdir = $(prefix)/share/unity/indicators
-indicators_DATA = com.canonical.indicator.power
+dist_indicators_DATA = com.canonical.indicator.power
+
+#
+# the dbus service file
+#
+
+dbus_servicesdir = $(DBUSSERVICEDIR)
+dbus_services_DATA = indicator-power.service
+dbus_services_in = $(dbus_services_DATA:.service=.service.in)
+$(dbus_services_DATA): $(dbus_services_in)
+ $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+BUILT_SOURCES += $(dbus_services_DATA)
+CLEANFILES += $(dbus_services_DATA)
+EXTRA_DIST += $(dbus_services_in)
#
# the gettings
@@ -22,7 +38,7 @@ dist_noinst_DATA = \
com.canonical.indicator.power.gschema.xml \
$(gsettings_in_file)
-CLEANFILES = \
+CLEANFILES += \
$(gsettings_SCHEMAS)
MAINTAINERCLEANFILES = \
diff --git a/data/indicator-power.service.in b/data/indicator-power.service.in
new file mode 100644
index 0000000..c59c69e
--- /dev/null
+++ b/data/indicator-power.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=com.canonical.indicator.power
+Exec=@libexecdir@/indicator-power-service