aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-04-01 19:19:55 +0200
committerjaseg <s@jaseg.de>2013-04-01 19:21:27 +0200
commit7e85ffea332ee0b45a632dde0f8a3d8d90ca4549 (patch)
tree7d9ab54061c9859791142ed6dc8d8b50b0e99bf1 /Makefile
parent59eca1fc5d17b85e3e4afaa2af0490d08cc50d98 (diff)
downloadponysay-7e85ffea332ee0b45a632dde0f8a3d8d90ca4549.tar.gz
ponysay-7e85ffea332ee0b45a632dde0f8a3d8d90ca4549.tar.bz2
ponysay-7e85ffea332ee0b45a632dde0f8a3d8d90ca4549.zip
Added zsh and bash completion
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 890ea35..0a9b632 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-PREFIX?=/usr
+PREFIX?=/usr/local
install:
install -m 0755 ponysay.py $(PREFIX)/bin
@@ -10,6 +10,8 @@ install:
install -m 0755 -d $(PREFIX)/share/doc/ponysay
install -m 0755 -t $(PREFIX)/share/doc/ponysay COPYING
install -m 0755 -t $(PREFIX)/share/doc/ponysay README.md
+ install -m 0644 completion/zsh-completion.sh /usr/share/zsh/site-functions/_ponysay
+ install -m 0755 completion/bash-completion.sh /etc/bash_completion.d/ponysay.sh
uninstall:
rm $(PREFIX)/bin/ponysay
@@ -19,4 +21,8 @@ uninstall:
rmdir $(PREFIX)/share/ponysay
rm $(PREFIX)/share/doc/ponysay/*
rmdir $(PREFIX)/share/doc/ponysay
+ rm /usr/share/zsh/site-functions/_ponysay
+ rm /etc/bash_completion.d/ponysay.sh
+
+reinstall: uninstall install