SOURCES are unused. Moved stopping services to its target.
This commit is contained in:
parent
c6aed4b67f
commit
51265cafb5
12
Makefile
12
Makefile
@ -7,8 +7,6 @@ DESTDIR=/
|
|||||||
|
|
||||||
LDFLAGS=-ldflags "-s -w"
|
LDFLAGS=-ldflags "-s -w"
|
||||||
|
|
||||||
SOURCES := ${wildcard *.go}
|
|
||||||
|
|
||||||
all: ${TARGET}
|
all: ${TARGET}
|
||||||
|
|
||||||
.PHONY: ${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.timer ${DESTDIR}${SYSDDIR}/${TARGET}-clear.timer
|
||||||
install -Dm 0644 init/systemd/${TARGET}-clear.service ${DESTDIR}${SYSDDIR}/${TARGET}-clear.service
|
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:
|
uninstall:
|
||||||
rm ${DESTDIR}usr/bin/${TARGET}
|
rm ${DESTDIR}usr/bin/${TARGET}
|
||||||
rm ${DESTDIR}usr/bin/${TARGET}-clear
|
rm ${DESTDIR}usr/bin/${TARGET}-clear
|
||||||
rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
|
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}.service
|
||||||
rm ${DESTDIR}${SYSDDIR}/${TARGET}-clear.timer
|
rm ${DESTDIR}${SYSDDIR}/${TARGET}-clear.timer
|
||||||
rm ${DESTDIR}${SYSDDIR}/${TARGET}-clear.service
|
rm ${DESTDIR}${SYSDDIR}/${TARGET}-clear.service
|
||||||
|
Loading…
Reference in New Issue
Block a user