fix(Makefile): add uninstall target

This commit is contained in:
Markus Pesch 2023-07-07 13:33:21 +02:00
parent 099694c636
commit 3639b7a3f4
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -68,4 +68,12 @@ install: build
# NOTE: Set restrict file permissions by default to protect optional basic auth credentials # NOTE: Set restrict file permissions by default to protect optional basic auth credentials
install -D --mode 0600 --target-directory ${DESTDIR}/etc/conf.d ${EXECUTABLE} install -D --mode 0600 --target-directory ${DESTDIR}/etc/conf.d ${EXECUTABLE}
install -D --mode 0755 --target-directory ${DESTDIR}${PREFIX}/share/licenses/LICENSE LICENSE install -D --mode 0755 --target-directory ${DESTDIR}${PREFIX}/share/licenses/LICENSE LICENSE
.PHONY: uninstall
uninstall:
-rm --recursive --force \
${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \
${DESTDIR}/usr/lib/systemd/system/${EXECUTABLE}.service \
${DESTDIR}/etc/conf.d/${EXECUTABLE} \
${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE}/LICENSE