1
0

SOURCES are unused. Moved stopping services to its target.

This commit is contained in:
Alexander Andreev 2022-02-10 22:48:43 +04:00
parent c6aed4b67f
commit 51265cafb5
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -7,8 +7,6 @@ DESTDIR=/
LDFLAGS=-ldflags "-s -w"
SOURCES := ${wildcard *.go}
all: ${TARGET}
.PHONY: ${TARGET}
@ -32,15 +30,17 @@ install:
install -Dm 0644 init/systemd/${TARGET}-clear.timer ${DESTDIR}${SYSDDIR}/${TARGET}-clear.timer
install -Dm 0644 init/systemd/${TARGET}-clear.service ${DESTDIR}${SYSDDIR}/${TARGET}-clear.service
stop-service:
${SYSCTL} stop ${TARGET}.service
${SYSCTL} stop ${TARGET}-clear.timer
${SYSCTL} disable ${TARGET}.service
${SYSCTL} disable ${TARGET}-clear.timer
uninstall:
rm ${DESTDIR}usr/bin/${TARGET}
rm ${DESTDIR}usr/bin/${TARGET}-clear
rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
${SYSCTL} stop ${TARGET}.service
${SYSCTL} stop ${TARGET}-clear.timer
${SYSCTL} disable ${TARGET}.service
${SYSCTL} disable ${TARGET}-clear.timer
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
rm ${DESTDIR}${SYSDDIR}/${TARGET}-clear.timer
rm ${DESTDIR}${SYSDDIR}/${TARGET}-clear.service