aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar maxice8 <thinkabit.ukim@gmail.com>2019-04-17 11:20:35 -0300
committerGravatar Christian Hesse <mail@eworm.de>2020-01-28 12:29:13 +0100
commit148227b5cfb966e85faeb2dcea6048afbceb106a (patch)
treeaf635b930815245297f4682fbac198682e585ace /Makefile
parente43f979227f0be7df371ed56764b9555b31a505f (diff)
downloadmpd-notification-148227b5cfb966e85faeb2dcea6048afbceb106a.tar.gz
mpd-notification-148227b5cfb966e85faeb2dcea6048afbceb106a.tar.zst
Makefile: don't install systemd service if there is no systemd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 34efed6..b0124fa 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,9 @@ install: install-bin install-doc
install-bin: mpd-notification
$(INSTALL) -D -m0755 mpd-notification $(DESTDIR)/usr/bin/mpd-notification
+ifneq ($(CFLAGS_SYSTEMD),)
$(INSTALL) -D -m0644 systemd/mpd-notification.service $(DESTDIR)/usr/lib/systemd/user/mpd-notification.service
+endif
install-doc: README.html
$(INSTALL) -D -m0644 README.md $(DESTDIR)/usr/share/doc/mpd-notification/README.md