1
0
Fork 0

[Makefile] Removed daemon-reload. Use right way to get path to systemd services.

This commit is contained in:
Alexander Andreev 2022-01-02 22:40:07 +04:00
parent bab45695d6
commit 791b48e043
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
1 changed files with 1 additions and 3 deletions

View File

@ -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