fix(Makefile): add uninstall target
This commit is contained in:
parent
099694c636
commit
3639b7a3f4
10
Makefile
10
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user