]> git.armaanb.net Git - charsel.git/blob - Makefile
update readme, fix -n bug, remove branding
[charsel.git] / Makefile
1 .DEFAULT_GOAL := install
2
3 install:
4         chmod +x ./charsel
5         mkdir -p /usr/share/charsel/charfiles/
6         cp charfiles/* /usr/share/charsel/charfiles/
7         cp shell-completions /usr/share/charsel/
8         mkdir /usr/share/doc/charsel
9         cp README.md /usr/share/doc/charsel/
10         cp ./charsel /usr/bin/
11
12 uninstall:
13         rm -rf /usr/share/charsel/
14         rm -rf /usr/share/doc/charsel/
15         rm -rf /usr/bin/charsel
16
17 reinstall:
18         make uninstall
19         make install
20
21 purge:
22         rm -rf  ${HOME}/.local/share/charsel/
23         rm -rf ${HOME}/.cache/charsel/
24
25 install-completions-bash:
26         echo "source /usr/share/charsel/shell-completions" >> '${HOME}/.bashrc'
27         echo "autoload bashcompinit ; bashcompinit ; source /usr/share/charsel/shell-completions" >> '${ZDOTDIR}/.zshrc'