Added uninstall.
This commit is contained in:
parent
9d0b682741
commit
c0f45c8869
11
Makefile
11
Makefile
@ -23,3 +23,14 @@ install: ascii
|
||||
mkdir -pv $$prefix/bin $$prefix/share/man/man1 \
|
||||
&& cp -v ascii $$prefix/bin/ \
|
||||
&& cp -v doc/ascii.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/ascii $$prefix/share/man/man1/ascii.1
|
||||
|
Loading…
Reference in New Issue
Block a user