2021-03-22 21:23:24 +00:00
|
|
|
PREFIX ?= /usr
|
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
LIBDIR ?= $(PREFIX)/share/hilbish
|
|
|
|
|
|
|
|
build:
|
|
|
|
@go build
|
|
|
|
|
2021-03-23 04:05:21 +00:00
|
|
|
install:
|
2021-03-22 21:23:24 +00:00
|
|
|
@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish"
|
|
|
|
@mkdir -p "$(LIBDIR)"
|
|
|
|
@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r
|
|
|
|
@echo "Hilbish Installed"
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@rm -vrf \
|
|
|
|
"$(BINDIR)/hilbish" \
|
|
|
|
"$(LIBDIR)"
|
|
|
|
@echo "Hilbish Uninstalled"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@go clean
|
|
|
|
|
|
|
|
all: build install
|
|
|
|
|
|
|
|
.PHONY: install uninstall build clean
|