chore: merge from master

pull/21/head
TorchedSammy 2021-03-28 19:31:29 -04:00
commit 352c5f73a8
2 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,5 @@
PREFIX ?= /usr PREFIX ?= /usr
DESTDIR ?=
BINDIR ?= $(PREFIX)/bin BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/share/hilbish LIBDIR ?= $(PREFIX)/share/hilbish
@ -6,17 +7,17 @@ build:
@go build @go build
install: install:
@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish" @install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v hilbish "$(DESTDIR)$(BINDIR)/hilbish"
@mkdir -p "$(LIBDIR)" @mkdir -p "$(DESTDIR)$(LIBDIR)"
@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r @cp libs preload.lua .hilbishrc.lua "$(DESTDIR)$(LIBDIR)" -r
@echo /usr/bin/hilbish >> /etc/shells @echo "$(DESTDIR)$(BINDIR)/hilbish" >> /etc/shells
@echo "Hilbish Installed" @echo "Hilbish Installed"
uninstall: uninstall:
@rm -vrf \ @rm -vrf \
"$(BINDIR)/hilbish" \ "$(DESTDIR)$(BINDIR)/hilbish" \
"$(LIBDIR)" "$(DESTDIR)$(LIBDIR)"
@sed '/\/usr\/bin\/hilbish/d' /etc/shells @sed -i '/hilbish/d' /etc/shells
@echo "Hilbish Uninstalled" @echo "Hilbish Uninstalled"
clean: clean:

View File

@ -22,7 +22,7 @@ cd Hilbish
make build make build
sudo make install sudo make install
# Or # Or
sudo make sudo make all
``` ```
Alternativly, if you use Arch Linux, you can install Hilbish with an **(unofficial)** AUR package Alternativly, if you use Arch Linux, you can install Hilbish with an **(unofficial)** AUR package