diff --git a/Makefile b/Makefile index 586df73..5be42ea 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ DESTDIR=/ INSTALL_BINDIR=${DESTDIR}usr/bin INSTALL_CONFIGDIR=${DESTDIR}etc/${TARGET} -INSTALL_SYSDSERVICEDIR=${DESTDIR}usr/lib/systemd/system +INSTALL_SYSDSERVICEDIR=${DESTDIR}${shell pkg-config systemd --variable=systemdsystemunitdir} INSTALL_LICENSEDIR=${DESTDIR}usr/share/licenses/${TARGET} LDFLAGS=-ldflags "-s -w" @@ -24,7 +24,6 @@ install: install-service: install -Dm 0644 contrib/systemd/${TARGET}.service ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service - ${SYSCTL} daemon-reload uninstall: rm ${INSTALL_BINDIR}/${TARGET} @@ -34,7 +33,6 @@ uninstall-service: ${SYSCTL} stop ${TARGET}.service ${SYSCTL} disable ${TARGET}.service rm ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service - ${SYSCTL} daemon-reload clean: go clean \ No newline at end of file