diff --git a/Makefile b/Makefile index 1380036..eddd083 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,14 @@ install: nuke mkdir -pv $$prefix/bin $$prefix/share/man/man1 \ && cp -v nuke $$prefix/bin/ \ && cp -v doc/nuke.1 $$prefix/share/man/man1/ + +uninstall: + @prefix="$(PREFIX)"; \ + if [[ ! $$prefix ]]; then \ + read -p $$'\033[1mWhere do you want to uninstall from? (default: /usr/local) \033[0m' prefix; \ + fi; \ + if [[ ! $$prefix ]]; then \ + prefix="/usr/local"; \ + fi; \ + echo "Deleting..."; \ + rm -rvf $$prefix/bin/nuke $$prefix/share/man/man1/doc/nuke.1