mirror of https://github.com/Hilbis/Hilbish
* Fixes #7 and adds `-i` to sed cmd * Removed build dep * Update README.md * improve sed cmdpull/21/head
parent
e4218a135a
commit
795a7d7fca
15
Makefile
15
Makefile
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue