update makefile

This commit is contained in:
Ben Harris 2020-02-03 19:08:46 -05:00
parent fe28b26923
commit 07303cf5e3
1 changed files with 5 additions and 6 deletions

View File

@ -1,13 +1,12 @@
BINDIR ?= /usr/local/bin
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
install:
@echo Installing the executable to $(BINDIR)
@mkdir -p $(BINDIR)
@cp -f bb.sh $(BINDIR)/bb
@chmod 755 $(BINDIR)/bb
$(info Installing the executable to $(BINDIR))
@install -Dm755 bb.sh $(BINDIR)/bb
uninstall:
@echo Removing the executable from $(BINDIR)
$(info Removing the executable from $(BINDIR))
@rm -f $(BINDIR)/bb
.PHONY: install uninstall