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

@ -69,3 +69,11 @@ install: build
install -D --mode 0600 --target-directory ${DESTDIR}/etc/conf.d ${EXECUTABLE}
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