Don't install systemd timers on non-systemd

Fixes #18
This commit is contained in:
DJ Lucas 2022-01-10 00:16:47 -06:00 committed by GitHub
parent a7ceb85300
commit 76fa47f5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,12 +34,14 @@ install_cs:
install -vm644 CS.txt $(DESTDIR)$(ETCDIR)
install_systemd:
if test -x /usr/sbin/systemctl -o -x /usr/bin/systemctl; then \
if test -d /usr/lib/systemd/system; then \
install -vdm755 ${DESTDIR}/usr/lib/systemd/system; \
install -vm644 systemd/* $(DESTDIR)/usr/lib/systemd/system; \
elif test -d /lib/systemd/system; then \
install -vdm755 ${DESTDIR}/lib/systemd/system; \
install -vm644 systemd/* ${DESTDIR}/lib/systemd/system; \
fi; \
fi
install_man: man