From 07303cf5e3fb080db19dbde74c51ad9cf7d39807 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 3 Feb 2020 19:08:46 -0500 Subject: [PATCH] update makefile --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 8702946..fc5c215 100644 --- a/Makefile +++ b/Makefile @@ -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