X-Git-Url: https://git.armaanb.net/?p=charsel.git;a=blobdiff_plain;f=Makefile;h=526b31427282bbc2751c2b5c2048e23bd802653b;hp=e4adcff80883a48b79cd94f98ea4a31a0bc0b879;hb=bc337195684eaeae2404a0aa5d2a533e89ea14da;hpb=47d69cf438e332ae205a62e8aa362a52ee510d60 diff --git a/Makefile b/Makefile index e4adcff..526b314 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,35 @@ .RECIPEPREFIX := > install: ->chmod +x src/charsel +>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 src/motd /usr/share/charsel ->cp src/charsel /usr/bin/ +>cp ./charsel /usr/bin/ uninstall: ->rm -rf /usr/share/charsel/charfiles/ +>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/ +>cp shell-completions /usr/share/charsel/ +>mkdir /usr/share/doc/charsel +>cp README.md /usr/share/doc/charsel/ +>cp ./charsel /usr/bin/ + +purge: +>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'