forked from team/bashblog
update makefile
This commit is contained in:
parent
fe28b26923
commit
07303cf5e3
11
Makefile
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user