diff --git a/Makefile b/Makefile index 169991a..6b16408 100644 --- a/Makefile +++ b/Makefile @@ -73,6 +73,10 @@ install: prometheus-fail2ban-exporter install --directory ${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE} install --mode 0644 LICENSE ${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE}/LICENSE + install --directory ${DESTDIR}${PREFIX}/systemd/system + install --mode 0644 systemd/systemd.service ${DESTDIR}${PREFIX}/systemd/system/${EXECUTABLE}.service + sed --in-place --regexp-extended 's/EXECUTABLE/${EXECUTABLE}/gm' ${DESTDIR}${PREFIX}/systemd/system/${EXECUTABLE}.service + # UNINSTALL # ============================================================================== PHONY+=uninstall