diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-03-20 17:27:51 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-03-20 17:27:51 +0100 |
commit | 00bb68332dfda66c2e98708d8c5eae693016a877 (patch) | |
tree | eb24f48c2dd4f1d552c4ca2e3ce44d62de39ac52 /Makefile.am | |
parent | Update fedora spec file for Python3 dependency (diff) | |
parent | Add systemd user unit file for redshift-gtk (diff) | |
download | redshift-ng-00bb68332dfda66c2e98708d8c5eae693016a877.tar.gz redshift-ng-00bb68332dfda66c2e98708d8c5eae693016a877.tar.bz2 redshift-ng-00bb68332dfda66c2e98708d8c5eae693016a877.tar.xz |
Merge branch 'systemd-service'
Add systemd user unit files for redshift and redshift-gtk.
Fixes #35, fixes #50.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index f3109ed..675fda8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,10 @@ SUBDIRS = src po ACLOCAL_AMFLAGS = -I m4 +# Install systemd user unit files locally for distcheck +DISTCHECK_CONFIGURE_FLAGS = \ + --with-systemduserunitdir=$$dc_install_base/$(systemduserunitdir) + UPDATE_ICON_CACHE = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor || : EXTRA_ROOTDOC_FILES = \ @@ -25,6 +29,10 @@ _UBUNTU_MONO_LIGHT_FILES = \ _DESKTOP_FILES = \ data/applications/redshift-gtk.desktop +SYSTEMD_USER_UNIT_IN_FILES = \ + data/systemd/redshift.service.in \ + data/systemd/redshift-gtk.service.in + # Icons if ENABLE_GUI @@ -55,15 +63,32 @@ uninstall-hook: $(UPDATE_ICON_CACHE); endif + # man page dist_man1_MANS = redshift.1 + +# Systemd service files +if ENABLE_SYSTEMD +systemduserunit_DATA = $(SYSTEMD_USER_UNIT_IN_FILES:.service.in=.service) +endif + +$(systemduserunit_DATA): $(SYSTEMD_USER_UNIT_IN_FILES) Makefile + $(AM_V_GEN)$(MKDIR_P) $(@D) && \ + sed -e "s|\@bindir\@|$(bindir)|g" $< > $@ + + + EXTRA_DIST = \ $(EXTRA_ROOTDOC_FILES) \ $(_HICOLOR_FILES) \ $(_UBUNTU_MONO_DARK_FILES) \ $(_UBUNTU_MONO_LIGHT_FILES) \ - $(_DESKTOP_FILES) + $(_DESKTOP_FILES) \ + $(SYSTEMD_USER_UNIT_IN_FILES) + +CLEANFILES = $(systemduserunit_DATA) + # Update PO translations .PHONY: update-po |