[Makefile] Removed daemon-reload. Use right way to get path to systemd services.
This commit is contained in:
parent
bab45695d6
commit
791b48e043
4
Makefile
4
Makefile
@ -5,7 +5,7 @@ DESTDIR=/
|
|||||||
|
|
||||||
INSTALL_BINDIR=${DESTDIR}usr/bin
|
INSTALL_BINDIR=${DESTDIR}usr/bin
|
||||||
INSTALL_CONFIGDIR=${DESTDIR}etc/${TARGET}
|
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}
|
INSTALL_LICENSEDIR=${DESTDIR}usr/share/licenses/${TARGET}
|
||||||
|
|
||||||
LDFLAGS=-ldflags "-s -w"
|
LDFLAGS=-ldflags "-s -w"
|
||||||
@ -24,7 +24,6 @@ install:
|
|||||||
|
|
||||||
install-service:
|
install-service:
|
||||||
install -Dm 0644 contrib/systemd/${TARGET}.service ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service
|
install -Dm 0644 contrib/systemd/${TARGET}.service ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service
|
||||||
${SYSCTL} daemon-reload
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ${INSTALL_BINDIR}/${TARGET}
|
rm ${INSTALL_BINDIR}/${TARGET}
|
||||||
@ -34,7 +33,6 @@ uninstall-service:
|
|||||||
${SYSCTL} stop ${TARGET}.service
|
${SYSCTL} stop ${TARGET}.service
|
||||||
${SYSCTL} disable ${TARGET}.service
|
${SYSCTL} disable ${TARGET}.service
|
||||||
rm ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service
|
rm ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service
|
||||||
${SYSCTL} daemon-reload
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
go clean
|
go clean
|
Loading…
Reference in New Issue
Block a user