From 148227b5cfb966e85faeb2dcea6048afbceb106a Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 17 Apr 2019 11:20:35 -0300 Subject: Makefile: don't install systemd service if there is no systemd --- Makefile | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-54-g00ecf