diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-09-30 17:22:17 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-09-30 17:22:17 -0700 |
| commit | f0e37a95f1514bc5af12bb42614391c23fad5d94 (patch) | |
| tree | 9868ec1f0569d12ec9aab307717b46f713f9bb96 /Makefile | |
| parent | 3fd603c607ec746c1f2347ee3c47ed37f5eff728 (diff) | |
Fixed an issue with /etc/bb instead of /etc/xdg/bb and moved the startup
command into bb.h with the other bb shell script stuff.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -68,10 +68,11 @@ install: $(NAME) fi; \ [ ! "$$prefix" ] && prefix="/usr/local"; \ [ ! "$$sysconfdir" ] && sysconfdir=/etc; \ - mkdir -m 700 -pv "$$prefix/bin" "$$prefix/share/man/man1" "$$sysconfdir/bb" \ + mkdir -m 644 -pv "$$prefix/share/man/man1" \ + mkdir -m 755 -pv "$$prefix/bin" "$$sysconfdir/xdg/bb" \ && cp -v $(NAME) "$$prefix/bin/" \ && cp -v $(NAME).1 "$$prefix/share/man/man1/" \ - && cp -v bbstartup.sh bindings.bb "$$sysconfdir/bb/" + && cp -v bbstartup.sh bindings.bb "$$sysconfdir/xdg/bb/" uninstall: @prefix="$(PREFIX)"; \ @@ -83,6 +84,6 @@ uninstall: [ ! "$$sysconfdir" ] && sysconfdir=/etc; \ [ ! "$$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME=~/.config; \ echo "Deleting..."; \ - rm -rvf "$$prefix/bin/$(NAME)" "$$prefix/share/man/man1/$(NAME).1" "$$sysconfdir/bb"; \ - printf '\033[1mIf you created any config files in $$XDG_CONFIG_HOME/bb, you may want to delete them manually.\033[0m' + rm -rvf "$$prefix/bin/$(NAME)" "$$prefix/share/man/man1/$(NAME).1" "$$sysconfdir/xdg/bb"; \ + printf "\033[1mIf you created any config files in ~/.config/bb, you may want to delete them manually.\033[0m" |
