]> git.armaanb.net Git - charsel.git/blob - Makefile
properly added shell completions
[charsel.git] / Makefile
1 .DEFAULT_GOAL := install
2 .RECIPEPREFIX := >
3
4 install:
5 >chmod +x ./charsel
6 >mkdir -p /usr/share/charsel/charfiles/
7 >cp charfiles/* /usr/share/charsel/charfiles/
8 >cp shell-completions /usr/share/charsel/
9 >mkdir /usr/share/doc/charsel
10 >cp README.md /usr/share/doc/charsel/
11 >cp ./charsel /usr/bin/
12
13 uninstall:
14 >rm -rf /usr/share/charsel/
15 >rm -rf /usr/share/doc/charsel/
16 >rm -rf /usr/bin/charsel
17
18 reinstall:
19 >rm -rf /usr/share/charsel/
20 >rm -rf /usr/share/doc/charsel/
21 >rm -rf /usr/bin/charsel
22 >chmod +x ./charsel
23 >mkdir -p /usr/share/charsel/charfiles/
24 >cp charfiles/* /usr/share/charsel/charfiles/
25 >cp shell-completions /usr/share/charsel/
26 >mkdir /usr/share/doc/charsel
27 >cp README.md /usr/share/doc/charsel/
28 >cp ./charsel /usr/bin/
29
30 purge:
31 >rm -rf  $USER/.local/share/charsel/
32 >rm -rf $USER/.cache/charsel/
33
34 install-completions-bash:
35 >echo "source /usr/share/charsel/shell-completions" >> '${HOME}/.bashrc'
36 >echo "autoload bashcompinit ; bashcompinit ; source /usr/share/charsel/shell-completions" >> '${ZDOTDIR}/.zshrc'