aboutsummaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-20 10:04:19 -0600
committerTed Gould <ted@gould.cx>2014-02-20 10:04:19 -0600
commit3bcbc85d8cda75d56101123ee9daf261b15c90fb (patch)
tree8453420beaa808965c8f0613d7ca18e4311f48b3 /data/Makefile.am
parentc3f0838047da8d2e7f9eb3b96008f0b07c91562c (diff)
downloadayatana-indicator-printers-3bcbc85d8cda75d56101123ee9daf261b15c90fb.tar.gz
ayatana-indicator-printers-3bcbc85d8cda75d56101123ee9daf261b15c90fb.tar.bz2
ayatana-indicator-printers-3bcbc85d8cda75d56101123ee9daf261b15c90fb.zip
Adding in XDG autostart and Upstart job files
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am32
1 files changed, 32 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 139597f..de18ae7 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,2 +1,34 @@
+BUILT_SOURCES=
+CLEANFILES=
+EXTRA_DIST=
+
+#SUBDIRS = upstart
+
+#
+# the upstart job file
+#
+
+upstart_jobsdir = $(datadir)/upstart/sessions
+upstart_jobs_DATA = indicator-printers.conf
+upstart_jobs_in = $(upstart_jobs_DATA:.conf=.conf.in)
+$(upstart_jobs_DATA): $(upstart_jobs_in)
+ $(AM_V_GEN) $(SED) -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+BUILT_SOURCES += $(upstart_jobs_DATA)
+CLEANFILES += $(upstart_jobs_DATA)
+EXTRA_DIST += $(upstart_jobs_in)
+
+#
+# the xdg autostart job file
+#
+
+xdg_autostartdir = /etc/xdg/autostart
+xdg_autostart_DATA = indicator-printers.desktop
+xdg_autostart_in = $(xdg_autostart_DATA:.desktop=.desktop.in)
+$(xdg_autostart_DATA): $(xdg_autostart_in)
+ $(AM_V_GEN) $(SED) -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+BUILT_SOURCES += $(xdg_autostart_DATA)
+CLEANFILES += $(xdg_autostart_DATA)
+EXTRA_DIST += $(xdg_autostart_in)
+