diff --git a/Makefile b/Makefile index 8f5835c..6af81a1 100644 --- a/Makefile +++ b/Makefile @@ -4,21 +4,21 @@ VERSION = 1.1 # paths -PREFIX = ~/.local/bin +DESTDIR= ~/.local/bin DATA_DIR = ~/.local/share/bt#if changed, needs adjustment in bt as well (defined in the beginning) SRC = bt install: - mkdir -p $(DESTDIR)$(PREFIX) + mkdir -p $(DESTDIR) mkdir -p $(DATA_DIR) - cp -f bt $(DESTDIR)$(PREFIX) - chmod 755 $(DESTDIR)$(PREFIX)/bt + cp -f bt $(DESTDIR)/bt + chmod 755 $(DESTDIR)/bt touch $(DATA_DIR)/blacklist touch $(DATA_DIR)/paired uninstall: - rm -f $(DESTDIR)$(PREFIX)/bt + rm -f $(DESTDIR)/bt rm -rf $(DATA_DIR) #clears manual paired devices list and blacklist