X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=Makefile;h=55eb16ca214f7862580c00427b3732340faceb79;hb=11c92905165c2b140143d27791c160f8727417e1;hp=1ed3a853e83c7953b31dff7979561005f27f3838;hpb=74601c376caedf65d541ab67e63513448a9bd7ec;p=charsel.git diff --git a/Makefile b/Makefile index 1ed3a85..55eb16c 100644 --- a/Makefile +++ b/Makefile @@ -1,30 +1,27 @@ .DEFAULT_GOAL := install -.RECIPEPREFIX := > install: ->chmod +x ./charsel ->mkdir -p /usr/share/charsel/charfiles/ ->cp charfiles/* /usr/share/charsel/charfiles/ ->mkdir /usr/share/doc/charsel ->cp README.md /usr/share/doc/charsel/ ->cp ./charsel /usr/bin/ + chmod +x ./charsel + mkdir -p /usr/share/charsel/charfiles/ + cp charfiles/* /usr/share/charsel/charfiles/ + cp shell-completions /usr/share/charsel/ + mkdir /usr/share/doc/charsel + cp README.md /usr/share/doc/charsel/ + cp ./charsel /usr/bin/ uninstall: ->rm -rf /usr/share/charsel/ ->rm -rf /usr/share/doc/charsel/ ->rm -rf /usr/bin/charsel + rm -rf /usr/share/charsel/ + rm -rf /usr/share/doc/charsel/ + rm -rf /usr/bin/charsel reinstall: ->rm -rf /usr/share/charsel/ ->rm -rf /usr/share/doc/charsel/ ->rm -rf /usr/bin/charsel ->chmod +x ./charsel ->mkdir -p /usr/share/charsel/charfiles/ ->cp charfiles/* /usr/share/charsel/charfiles/ ->mkdir /usr/share/doc/charsel ->cp README.md /usr/share/doc/charsel/ ->cp ./charsel /usr/bin/ + make uninstall + make install purge: ->rm -rf $USER/.local/share/charsel/ ->rm -rf $USER/.cache/charsel/ + rm -rf ${HOME}/.local/share/charsel/ + rm -rf ${HOME}/.cache/charsel/ + +install-completions-bash: + echo "source /usr/share/charsel/shell-completions" >> '${HOME}/.bashrc' + echo "autoload bashcompinit ; bashcompinit ; source /usr/share/charsel/shell-completions" >> '${ZDOTDIR}/.zshrc'