cleaned up Makefile

This commit is contained in:
Alexander Bocken 2020-07-04 20:26:30 +02:00
parent 51ec2690a8
commit 427ff66213

View File

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